T
Ted
I've written a little function to remove everything after the 2nd decimal
place for prices which is as follows: -
ReturnConvertedCurrency = (fix(iSterling * session("ExchangeRate") *
100) / 100)
However, it sometimes returns incorrect values. i.e. Why does the
following: -
response.write(FormatNumber((fix(2.30 * 1 * 100) / 100) , 2))
or
response.write(FormatNumber((int(2.30 * 1 * 100) / 100) , 2))
return 2.29 ?
Any help would be greatly appreciated as I've been ripping my hair out for a
few hours trying to solve this one.
Ted.
place for prices which is as follows: -
ReturnConvertedCurrency = (fix(iSterling * session("ExchangeRate") *
100) / 100)
However, it sometimes returns incorrect values. i.e. Why does the
following: -
response.write(FormatNumber((fix(2.30 * 1 * 100) / 100) , 2))
or
response.write(FormatNumber((int(2.30 * 1 * 100) / 100) , 2))
return 2.29 ?
Any help would be greatly appreciated as I've been ripping my hair out for a
few hours trying to solve this one.
Ted.