Forum Discussion

ValentinasS's avatar
ValentinasS
Copper Contributor
Dec 29, 2021

Calculation problem

Hi, 

 

I`m trying to calculate 39,46-40 and expecting to get  -0,54, but getting instead -0,539999999999999

 

what is the cause of that?

 

BR,

Val

8 Replies

  • Riny_van_Eekelen's avatar
    Riny_van_Eekelen
    Platinum Contributor

    ValentinasS I suspect that the number you start of with is actually something like 39.46000001, formatted to display only two decimals. Use ROUND if you want Excel to calculate with two decimal accuracy.

    • ValentinasS's avatar
      ValentinasS
      Copper Contributor
      no, numbers are exactly 39,46 and 40, please try to do that by yourself, I tried it on multiple computers, and the result is the same