MathGroup Archive 1997

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

Search the Archive

Re: [Help?] Integer/Decimal portion of a real number

  • To: mathgroup at smc.vnet.net
  • Subject: [mg8867] Re: [mg8847] [Help?] Integer/Decimal portion of a real number
  • From: Wouter Meeussen <w.meeussen.vdmcc at vandemoortele.be>
  • Date: Tue, 30 Sep 1997 20:16:32 -0400
  • Sender: owner-wri-mathgroup at wolfram.com

At 02:40  29.09.97 -0400, kammy shan leung wrote:
>Hi,
>
>I'm fairly new with mathematica, and I have a simple question that I
>can't figure out.  What I would like to do is break up a real number to
>its integer and decimal portion.
>
> For example:
>
>  4.12345 can be broken up to:
>
> integer_portion = 4
> decimal_portion = 12345
>
> Is there a simple function that will provide me with these values?
>
>would appreciate if you would email me.
>
>Thanks,
>Kammy Leung
>-- 
>ksleung at uiuc.edu
>



take a look at Floor, Ceiling, (# - Floor[#]&) , etc..

have fun,

wouter.

NV Vandemoortele Coordination Center
Oils & Fats Applied Research
Prins Albertlaan 79
Postbus 40
B-8870 Izegem (Belgium)
Tel: +/32/51/33 21 11
Fax: +/32/51/33 21 75
vdmcc at vandemoortele.be



  • Prev by Date: Unsolved integral
  • Next by Date: Re: Turning the elements of a list into the arguments of a function.
  • Previous by thread: Unsolved integral
  • Next by thread: Re: [Help?] Integer/Decimal portion of a real number