Simple calculation is producing the wrong answer

Simple calculation is producing the wrong answer - Adding up negative an positive numbers - 消息

#1 已发布: 2012/5/1 07:42:08
lcesero

lcesero

0个赞,共8个帖子。

组: User

Hello,

I have come across an error when doing the folowing calculation.

-5.00+.85+.85+3.30=-4.44*10^-16 ( decimal places are set to 2)

The above equation should equal zero.

I am using the portable version .93 (build 4466 ) on Windows 7 Pro 64bit.




Thanks in advance.



#2 已发布: 2012/5/1 14:11:55
lcesero

lcesero

0个赞,共8个帖子。

组: User

Hello,

I was wondering if anyone else can reproduce this symptom.


Thanks,
#3 已发布: 2012/5/1 14:21:12
Andrey Ivashov

Andrey Ivashov

2,344个赞,共4,057个帖子。

组: Super Administrator

Hello lcesero.

Yes, I've reproduced it. The only thing I can do here is to add an ability to replace answer with 0 if the result accuracy is less then or equal [MATH]10^-16[/MATH]. This way used by Mathcad as an option of every equation. Will think about it.

Best regards, Andrey Ivashov.
  • 有新帖
  • 无新帖