Re: Real -> Integer
- To: mathgroup at smc.vnet.net
- Subject: [mg44948] Re: Real -> Integer
- From: Bill Rowe <readnewsciv at earthlink.net>
- Date: Wed, 10 Dec 2003 04:01:54 -0500 (EST)
- Sender: owner-wri-mathgroup at wolfram.com
On 12/9/03 at 3:32 AM, beskrovn at phlam.univ-lille1.fr (Vladislav Beskrovnyy) wrote: > Is there a function in Mathematica, which converts Real numbers into > Integers? I.e. The fucntion which changes > 2. into 2 > 2.3 into 23/10 > etc. Yes, Rationalize as in In[1]:= Rationalize[2.] Out[1]= 2 In[2]:= Rationalize[2.3] Out[2]= 23/10 -- To reply via email subtract one hundred and nine