MathGroup Archive 2004

[Date Index] [Thread Index] [Author Index]

Search the Archive

RE : 34.123*89 = 3036.95 (3036.947)

Hello  Thomas,

This question has just been discussed this month.
See the related link :

To make it short : Cumputers represent the floating point numbers with a
finite precision, in base 2. So the result of a computation cannot have
infinite precision. With Mathematica, the default precision is
$MachinePrecision , i.e. less then 16 significant digits.

If you look at the representation with 7 significant digits, you may be
happier :

NumberForm[34.123*89, 7]


Speziell mit Mathematica:

You may also want to precise that your first number has , let us say, 50
significant digits. In this case, the result will also have 50 significant
digits :



Beste Grüsse

-----Message d'origine-----
De : Thomas Schulz [mailto:thomas-k-schulz at] 
Envoyé : vendredi, 30. avril 2004 01:40
À : mathgroup at
Objet : [mg47905] 34.123*89 = 3036.95 (3036.947)

I am a NewBe - and i dont understand the Result.
Mathematica says that 34.123*89 = 3036.94699999997 but its 3036.947...
How can i change this?

i use a IBook (G4) with Mac OS X.

  • Prev by Date: Re: 34.123*89 = 3036.95 (3036.947)
  • Next by Date: Re: labeling curves on a plot
  • Previous by thread: Union & Select for removing duplicates in a list
  • Next by thread: on ColorFunction and combined images?