1/3 does not give the accurate result of 0.3333... When the places after decimal increase to 7. How to deal with this | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

1/3 does not give the accurate result of 0.3333... When the places after decimal increase to 7. How to deal with this

18th Dec 2016, 1:33 PM
Pankaj Rai
Pankaj Rai - avatar
3 Answers
+ 3
Convert it to string and do operations digit by digit (one by one)
18th Dec 2016, 4:00 PM
Valen.H. ~
Valen.H. ~ - avatar
- 1
ok
27th Apr 2017, 4:19 AM
WebTop Three
WebTop Three - avatar
- 1
what
27th Apr 2017, 4:20 AM
WebTop Three
WebTop Three - avatar