This object is in archive!
Properties
Similar Topics
Statistics
Comments
2
Participants
2
Subscribers
26
Votes
1
Views
611
Share
Forced rounding create precision troubles
New
Good morning, Dear GeoGebra and GeoGebrians.
Forced rounding create precision troubles when need to exact draw values with periodic digits for: segments, squares, areas, etc.
According to Pythagoras Theorem, we should sum areas of two squares something like that.
It should be 0.999..., if 2/9 + 7/9 = 0.222... + 0.777... = 0.999...
See attached picture for details, there we could see that area is equal one instead of 0.999....
Thank You.
Files:
square_area_0.9...
 GeoGebra
 Help
 Partners

Contact us
 Feedback & Questions
 This email address is being protected from spambots. You need JavaScript enabled to view it.
 +43 677 6137 2693
© 2022 International GeoGebra Institute
calculate with 32/64 bit in decimal is alway an approximation.
Usual is with rounding and in the most applications this is more exact (see attachment).
If you want cut instead of round for your division you can use
floor(n / 9 (10¹⁵)) / 10¹⁵
.
Comments have been locked on this page!