#TheUchi007 - amount property in decimals
1 messages · Page 1 of 1 (latest)
That value will always be an integer. For most currencies that is the currency / 100 but for some currencies there won't be any multiplication https://stripe.com/docs/currencies#zero-decimal
So basically, you will probably have to set it to a float of itself divided by 100 yourself
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?
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