Rounding numbers ending with 0

Hello all

I have no idea how to solve this on my own, so I need your help.

I need all numbers in my app to have two digits after the comma while the second digit has always to remain zero. Examples:

10.00
22.80
54.30

Even if you add 6.31 to 10.00 the result is supposed to be rounded to 16.30 with a zero at the end, and if you add 6.39 to 10.00 the result must be 16.40 respectively.

Any ideas?

Many thanks in advance.

Quick way

AI2 will treat it as a number, even though it becomes a string when you join the zero

2 Likes

And my way:


1 Like

What about showing us a "Do it" result...
(It seems the result in your case is "6.00")

Thank you so much!
I will try it as soon as possible in the next few days.

No. The result will be what the author of the post expects.

Confirmed :slight_smile:

Exactly. And if it's 5.57, round up to 5.60.