Why is 0.1+0.2 not equal to 0.3 in most programming language
Share
Sign In to Kobiza.com to connect, share knowledge or learn
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
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.
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