Mathematica 9 is now available
Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2000
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*December
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2000

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

Search the Archive

RE: fractional number

  • To: mathgroup at smc.vnet.net
  • Subject: [mg23793] RE: [mg23751] fractional number
  • From: "David Park" <djmp at earthlink.net>
  • Date: Sat, 10 Jun 2000 02:59:43 -0400 (EDT)
  • Sender: owner-wri-mathgroup at wolfram.com


> -----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