I'm trying to handling a decimal problem on a Double object.

After some computation on that double value, I got this kind of results:

Result 1 = 10.70

Result 2 = 5.50

Result 3 = 6.6999999999999999

My target is to obtain a number format like Result 1 and Result 2.

There is a object / internal IDE function that allow to set the decimals to 2 digits?

P.S.

After i post this question, I found this post:

https://www.b4x.com/android/forum/threads/problem-with-decimal-rounding.60308/