Question
Commercial (Mercantile) Rounding?
Greetings,
in order to calculate something i need to multiply some values on CF5.0
a = 1690,00 which is a price
b = 0.0025 which is a insurance rate
x = the result from a * b
1690,00 * 0,0025 = 4,225 or <cfset x = a * b>
All fine so far... but the result returned is alway 4,22, I need that result to be commercial rounded up to 4,23. Seems to be simple though, but i havent found any solution to specify what type of rounding i prefer...
Any help would be much appreciated...
in order to calculate something i need to multiply some values on CF5.0
a = 1690,00 which is a price
b = 0.0025 which is a insurance rate
x = the result from a * b
1690,00 * 0,0025 = 4,225 or <cfset x = a * b>
All fine so far... but the result returned is alway 4,22, I need that result to be commercial rounded up to 4,23. Seems to be simple though, but i havent found any solution to specify what type of rounding i prefer...
Any help would be much appreciated...