remove decimal out of an equation to send to a payment gatew
Posted: Mon May 20, 2013 5:53 am
i have a value that currently has shows a decimal
i need the decimal to show until the variable $amount is sent to the payment gateway
what is the best way to remove the decimal from the variable
so a value of e.g
250.59
will be sent as 25059
thanks
Code: Select all
@$amount = $_POST['amount'];i need the decimal to show until the variable $amount is sent to the payment gateway
what is the best way to remove the decimal from the variable
so a value of e.g
250.59
will be sent as 25059
thanks