MathGroup Archive 2000

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

Search the Archive

rounding off numbers

  • To: mathgroup at
  • Subject: [mg23884] rounding off numbers
  • From: JikaiRF at
  • Date: Thu, 15 Jun 2000 00:51:21 -0400 (EDT)
  • Sender: owner-wri-mathgroup at

    Dear members of MathGroup,
    I would like to report a problem rounding off numbers with Mathematica.

Take, for example, the number 81.3736.  Since I want to round it off to the 
second decimal, I use the formula 81.3736 + (9-4)*0.001.  And I obtain 

Then, if I round off the third decimal point of the above result, 81.3786, I 

can obtain the required answer 81.37.

    In order to establish the above procedure on Mathematica, I tried the

    N[81.3736 +(9-4)*0.001, 4]

    However, the result was 81.38, because the function of N is, in this 
situation, designed to 
the third decimal of 81.3786, that is,8.

    I need to round off the third decimal in the above program.
    I would like to know how to program Mathematica to achieve this.

    I hope to receive useful advice from you, as I have done previously.

        Fujio Takata

    P.S. My e-mail address is:  JikaiRF at


  • Prev by Date: HELP
  • Next by Date: Re: Linking with C++
  • Previous by thread: HELP
  • Next by thread: RE: rounding off numbers