Why isn’t 0.1+0.2=0.3 in most programming languages.

1.25K views

0.1+0.2==0.3 evaluates to false in most programming languages because the result is somewhat 0.30000004, what’s the reason behind this?

In: Engineering

5 Answers

Anonymous 0 Comments

Does the Posit number type get around the limitations of floating point values being rounded? I have briefly looked at it, but I’m still not familiar enough with Posit to know.

You are viewing 1 out of 5 answers, click here to view all answers.