0.565 is a decimal value. It cannot be represented precisely in a double value. In this specific value a very small error will cause the rounding to be unstable.
You can add a small value to make sure that it rounds up:
B4X:
Round2(x + 0.0000001, 2)
With that said, you should avoid using Round2 at all. Use NumberFormat or NumberFormat2 when you want to show the number to the user and keep the more precise value.
You can also use the smart string literal:
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.