#TheUchi007 - amount property in decimals

1 messages · Page 1 of 1 (latest)

short dagger
#

So basically, you will probably have to set it to a float of itself divided by 100 yourself

silk lake
#

Ok. So let's say, I want to get the 10% of 49.99. So I will first get that percentage, and THEN divideby 100? I just want to make sure

#

Also, I assume it should always be to 2 decimal places?

short dagger
#

Yeah, you could either calculate .1 * 49.99 = .49 and then bump that up to 49 or you can calculate that .1 * 4999 = 49 and convert that to .49 for your system

silk lake
#

Ok, got it. So just to be sure, does this mean that all prices will always need to be to 2 decimal places? So for example, something that is only $10, it should be as 1000, right?

#

So like, shouldbe 10.00 -> 1000