Simple calculation is producing the wrong answer

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

#1 Posted: 5/1/2012 7:42:08 AM
lcesero

lcesero

0 likes in 8 posts.

Group: 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 Posted: 5/1/2012 2:11:55 PM
lcesero

lcesero

0 likes in 8 posts.

Group: User

Hello,

I was wondering if anyone else can reproduce this symptom.


Thanks,
#3 Posted: 5/1/2012 2:21:12 PM
Andrey Ivashov

Andrey Ivashov

2269 likes in 3730 posts.

Group: 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.
  • New Posts New Posts
  • No New Posts No New Posts