Hi,
Does anyone know the best way I can convert a string into minor currency?
i.e. 10.00 would become 1000
I can’t just take out the decimal because it could also be 6.5 to 650 or 5 to 500.
Cheers,
Rhys
Hi,
Does anyone know the best way I can convert a string into minor currency?
i.e. 10.00 would become 1000
I can’t just take out the decimal because it could also be 6.5 to 650 or 5 to 500.
Cheers,
Rhys
I think that you want the major currency, not the minor. If so, try to multiply the value with 100.
Thanks. I should take some time off…