![Prmtv Prmtv](/forum/images/noavatar.gif) ![](/forum/Images/Ranks/Advanced-Member.png) Rank: Advanced Member Groups: Registered
Joined: 14/07/2022(UTC) Posts: 43 ![Man Man](/forum/Themes/yafvision/male.gif) ![Russian Federation Russian Federation](/forum/Content/images/flags/RU.png)
|
Hello! 1) Why is the result of the sum not 0? 2) Why do different sum options differ (red from blue)? ![011210.PNG](/forum/resource.ashx?a=49680&b=2) sum.sm (16kb) downloaded 3 time(s).
|
|
|
|
![overlord overlord](/forum/images/noavatar.gif) ![](/forum/Images/Ranks/Advanced-Member.png) Rank: Advanced Member Groups: Registered
Joined: 23/07/2013(UTC) Posts: 1,191 ![Turkey Turkey](/forum/Content/images/flags/TR.png) Was thanked: 544 time(s) in 366 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. ![Click to expand Click to expand](https://en.smath.com/forum/resource.ashx?a=49683&b=2) Changing exponent threshold to bigger makes your results zero by the way. ![Click to expand Click to expand](https://en.smath.com/forum/resource.ashx?a=49682&b=2) Regards
|
|
|
|
![Prmtv Prmtv](/forum/images/noavatar.gif) ![](/forum/Images/Ranks/Advanced-Member.png) Rank: Advanced Member Groups: Registered
Joined: 14/07/2022(UTC) Posts: 43 ![Man Man](/forum/Themes/yafvision/male.gif) ![Russian Federation Russian Federation](/forum/Content/images/flags/RU.png)
|
Originally Posted by: overlord ![Go to Quoted Post Go to Quoted Post](/forum/Themes/yafvision/icon_latest_reply.gif) 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. ![Click to expand Click to expand](https://en.smath.com/forum/resource.ashx?a=49683&b=2) Changing exponent threshold to bigger makes your results zero by the way. ![Click to expand Click to expand](https://en.smath.com/forum/resource.ashx?a=49682&b=2) 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.