I have this biller that needs to get the cents, so 100$ is 10000, how can I get the 10000 into 100.00 again?
Tried searching for it, but no dice. Any function I could look into?
How about converting to float and then dividing by 100?
Originally posted by hermzz How about converting to float and then dividing by 100?
Will that make from 7499 - 74.99 ?
I'm gonna try a couple things, any more tips?
Not the sweetest method, but it does the trick ....
$nodec = substr($TransferAmount, 0, strlen($TransferAmount)-2); $dec = substr($TransferAmount, strlen($TransferAmount)-2); $TransferAmount = $nodec.".".$dec;