Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Browse

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to add post.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

OrkTouch

OrkTouch Logo OrkTouch Logo

Mobile menu

Close
Ask a Question
  • Home
  • Questions
  • Articles
  • News
  • Members
  • Groups
  • Badges
  • About Us |
  • Contact Us |
  • FAQs |
  • DMCA |
  • Privacy Policy |
  • Terms of Service
Home/ Questions/Q 6329
Next
adam
  • 0
adamPundit
Asked: 15 April 20222022-04-15T11:25:17+05:30 2022-04-15T11:25:17+05:30In: Coding

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

  • 0

Computers implement a wide range of arithmetic schemes. In some, such as decimal floating point and rational arithmetic, 0.1 + 0.2 does equal 0.3. One computer I own uses radix-100 floating point, and for it, 0.1 + 0.2 = 0.3 as well.

Now, in binary floating point arithmetic, including the ubiquitous version defined by IEEE-754 floating point standard, it is true: 0.1 + 0.2 ≠ 0.3.

Most programs these days use IEEE floating point by default. Programs can choose to implement other forms of arithmetic, including rational arithmetic and decimal floating point.

codingprogramming
  • 0 0 Answers
  • 18 Views
  • 0 Followers
  • 0
  • Share
    Share
    • Share on Facebook
    • Share on Twitter
    • Share on LinkedIn
    • Share on WhatsApp

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

Sidebar

Ask A Question
Add A New Post
Submit a URL

Top Members

aseo8889991

aseo8889991

  • 0 Questions
  • 42 Points
Beginner
hpnkntf

hpnkntf

  • 6 Questions
  • 37 Points
Beginner
Niang

Niang

  • 0 Questions
  • 36 Points
Beginner
RuytElmer

RuytElmer

  • 0 Questions
  • 36 Points
Beginner

Trending Tags

analytics c coding company computer dfs english golden goose google javascript language php programming programs russia-ukrain sdf sfd spirit airlines ticket

Explore

  • Home
  • Questions
  • Articles
  • News
  • Members
  • Groups
  • Badges
  • About Us |
  • Contact Us |
  • FAQs |
  • DMCA |
  • Privacy Policy |
  • Terms of Service

© 2020 OrkTouch. All Rights Reserved