Moneylady
  • 0
Estimable Member

Why is 0.1+0.2 not equal to 0.3 in most programming language

  • 0

Why is 0.1+0.2 not equal to 0.3 in most programming language

Share

Related Questions

Leave an answer

You must login to add an answer.

1 Answer

  1. Using binary , decimal numbers computers cannot represent all decimals precisely and have infinite representation. This makes it difficult for computers to accurately represent numbers like 0.1,0.2 or 0.3 at all as it uses binary floating-point format.

    Using binary , decimal numbers computers cannot represent all decimals precisely and have infinite representation. This makes it difficult for computers to accurately represent numbers like 0.1,0.2 or 0.3 at all as it uses binary floating-point format.

    See less