rounding error

D

Dirk Van Waes

Hello,
Somewhere in my code i have the statement:
hztwbv = Round(hzproef * percentvakantiegeldprive, 2)

I declared hztwbv, hzproef and percentvakantiegeldprive as single
When I check the values, the right part (=Round(hzproef *
percentvakantiegeldprive, 2)) gives me 5990,29 as a result, but the value of
hztwbv = 5990,30

Can somebody explane me how that is possible please. I don't know what to do
to correct this fault.
TIA
Dirk
 
Top