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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top