Hello,
I've been trying to show only two decimals from a variable.
To do so, I use : int(NUMBER*100)/100
But it do not work.
Image
<img src="https://www.dropbox.com/s/fln9seqkyn1mata/codigo.jpg" border="0">
And the project file is:
dropbox.com/s/81gfxs6xxuvzhd3/Decimal-Test.capx
project
Why it do not act as suposed?
change
int((Item8*100)/100)
to
int(Item8*100)/100
Same goes for the entry for item7.
capx
Develop games in your browser. Powerful, performant & highly capable.
True! It works
But why?
It's because with the brackets including the last /100, it turns all into an int number?
Although, the other way turn it into a real number...
This is the reason?