So i ran into trouble rounding floats up, this is my code:
foo = float(0.21)
bar = float(0.871929)
foobar = foo * bar
Rfoobar = round(foobar,2)
This gives me:
foobar = 0.1831
Rfoobar = 0.18
But i want Rfoobar to be 0.19
,
how do i accomplish that it always rounds up the digits when there is a remainder?
I read about math.ceiling
but in my case that doesn't seem to do the trick.
any help is greatly appreciated.