Hi I am having a horrible time with a decimal point problem.
I need all numerical values to be converted to a positive integer.
(i.e. for "19.99" to be converted to "1999")
I need to find a script that will check a numerical value to see if a decimal point is present, and if it is, then to remove it.
Else if no decimal point is originally present then to append "00" to the end of the numerical value.
Our shopping cart uses decimal points but the payment gateway doesnt. Some items may be set with the price 1.25 this needs to be converted to 125, but other prices may be 23 this needs to be converted to 2300.
Please help if you can, as I cant find a script to do this anywhere...