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. Items dont always contain a decimal point in the price, Some items may be set with the price 1.25 this needs to be converted to 125, but another price may be 23 for example & this needs to be converted to 2300.
I am not a programmer so this is just to explain what I need, something like...
HSBCPrice = ItemTotal
If HSBCPrice contains "." Then remove "."
HSBCPrice = HSBCPrice * 100
Please help if you can, as I cant find a script to do this anywhere...