If you run this formula in traditional Domino
You will get 80,40 back into the field
But if you run this in some XPage Code you will get
So you need to change the formula to this.
Then you will get 40,8 back. Not that when you do @Text() on the number the comma is back 😉