rounding decimals?

MLDev

Active Member
Licensed User
Longtime User
This works also:
B4X:
RoundedNumber = Round2(Number, 2)

EDIT
@klaus I just noticed that code is wrong. It should be:
B4X:
RoundedNumber = Floor(Number * 100 + 0.5)  / 100
 
Last edited:
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…