Define a variable as a long integer and use it as the value to pass to the gateway (and to receive values from the gateway if that also occurs).
Instead of using your currency value, when passing a value to the gateway, set the long integer variable = 100 * currency value.
If you are reading from the gateway, set the currency value = (integer variable [value passed by the gateway])/100.
Or multiple by .01 if you prefer.
Does the payment gateway pass everything as text? If so, then you'll have to also convert the integer to text to pass to the gateway (and the gateway value to integer before converting to currency). You could also do it as a more complex statement in one step for each way, rather than two.
By using the longinteger variable you insure that the number is a pure number (in effect, an even number of cents).