Re: Errors with decimal addition in Mathematica 5.0
- To: mathgroup at smc.vnet.net
- Subject: [mg47429] Re: Errors with decimal addition in Mathematica 5.0
- From: Harold.Noffke at wpafb.af.mil (Harold Noffke)
- Date: Sun, 11 Apr 2004 04:44:06 -0400 (EDT)
- References: <c582pm$npb$1@smc.vnet.net>
- Sender: owner-wri-mathgroup at wolfram.com
Peng: Let's look at "correctness". x = 13505.5 = 135055/10 y = 244.91 = 24491/100 x-y = 1326059/100 = 13260.59 So, it is Mathematica which gives you the "correct" answer. If you read the Mathematica 5 Book, 3.1.4 Numerical Precision, you will find more information on this issue. Regards, Harold