MathGroup Archive 2000

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

Search the Archive

RE: fractional number



> -----Original Message-----
> From: JikaiRF at aol.com [mailto:JikaiRF at aol.com]
To: mathgroup at smc.vnet.net
>     Dear members of MathGroup,
>     I have a trouble manipulating Mathematica.
>
> My trouble is as follows:
> Consider a fractional number and transform it into decimals.  In
> this case,
> there could be left many decimals.  Then, I need to round the
> third decimal
> point as follows:
>     If they are larger than six digits, it should be rounded up from the
> third decimal points and rounded off if smaller than five.
>     Take examples;
>     1/17= 0.05882...  the fractional number should be expressed as 0.06.
>     1/18= 0.0555...   the fractional number should be expressed as 0.05.
>
>     I'd like to know how to program Mathematica to depict the above story.
>
>     I hope to receive answers from you soon.
>
>         Sincerely,
>         Fujio Takata
>
>         P.S. My e-mail address; JikaiRF at aol.com
>

Something like this:

N[Round[100  1/17]/100]
0.06

or

Round[100 1/17]/100.
0.06

David Park
djmp at earthlink.net
http://home.earthlink.net/~djmp/



  • Prev by Date: Re: PDE's?
  • Next by Date: WorkingPrecision
  • Previous by thread: fractional number
  • Next by thread: Units