Rank: Advanced Member Groups: Registered
Joined: 14/07/2022(UTC) Posts: 43
|
Hello! 1) Why is the result of the sum not 0? 2) Why do different sum options differ (red from blue)? sum.sm (16kb) downloaded 3 time(s).
|
|
|
|
Rank: Advanced Member Groups: Registered
Joined: 23/07/2013(UTC) Posts: 1,168 Was thanked: 530 time(s) in 356 post(s)
|
That number practically means zero to programming languages. Decimal numbers stored in smath as fractions. In each iteration a small decimal part can be leftover. When they are collected it makes result away from zero. Putting an eval() to your calculation makes your results even smaller. Changing exponent threshold to bigger makes your results zero by the way. Regards
|
|
|
|
Rank: Advanced Member Groups: Registered
Joined: 14/07/2022(UTC) Posts: 43
|
Originally Posted by: overlord That number practically means zero to programming languages. Decimal numbers stored in smath as fractions. In each iteration a small decimal part can be leftover. When they are collected it makes result away from zero. Putting an eval() to your calculation makes your results even smaller. Changing exponent threshold to bigger makes your results zero by the way. Regards With further calculations, the program will perceive it like 0 or will an error accumulate?
|
|
|
|
Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.