I'm trying to round a float up to 2 decimals.
I've 3 pars
a = 0.83;
b = 44.5;
c = a * b
(result on calculator is "36.935". result on source code is "36.934999999999995");
I will need to be rounded up so I end up with the following:
36.94
When I use the following method:
Math.round(c * 100) / 100;
The result is:
36.93
Anybody can help me to round it?