       Q about using Round.

• To: mathgroup at smc.vnet.net
• Subject: [mg20426] Q about using Round.
• From: d8442803 at student.nsysu.edu.tw (Wen-Feng Hsiao)
• Date: Tue, 26 Oct 1999 00:33:09 -0400
• Organization: MIS
• Sender: owner-wri-mathgroup at wolfram.com

```Hi,

The following procedures are an example of 'Round' in the Mathematica
help. It is strange that the round of square-root of pi is 1. It is
supposed to be 2. Why?

Wen-Feng

-=-=-=-
In:=
NumericRound[x_] := MapAll[If[NumericQ[#], Round[#], #] &, x]
In:=
\!\(NumericRound[\ at \[Pi] + \((\[ExponentialE] + a)\)\ x + \((4.3 -
8.6  \[ImaginaryI]\ )\) x\^3]\)
Out=
\!\(1 + \((3 + a)\)\ x + \((4 - 9\ \[ImaginaryI])\)\ x\^3\)

(* When changing it into the following , I obtain the desired result.
Why? *)
In:=
\!\(NumericRound[\((\ at \[Pi] + \((\[ExponentialE] + a)\)\ x + \((4.3 -
8.6  \[ImaginaryI]\ )\) x\^3)\) // N]\)
Out=
\!\(2 + \((3 + a)\)\ x + \((4 - 9\ \[ImaginaryI])\)\ x\^3\)

```

• Prev by Date: drawing tilted ellipses?
• Next by Date: Possible mis-documentation
• Previous by thread: Q about using Round.
• Next by thread: Re: Q about using Round.