rounding off numbers

*To*: mathgroup at smc.vnet.net*Subject*: [mg23884] rounding off numbers*From*: JikaiRF at aol.com*Date*: Thu, 15 Jun 2000 00:51:21 -0400 (EDT)*Sender*: owner-wri-mathgroup at wolfram.com

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 81.3786. 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 program: 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 round 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. Sincerely, Fujio Takata P.S. My e-mail address is: JikaiRF at aol.com