MathGroup Archive 2003

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

Search the Archive

Re: Real -> Integer

  • To: mathgroup at smc.vnet.net
  • Subject: [mg44936] Re: [mg44914] Real -> Integer
  • From: "Sseziwa Mukasa,,(978) 536-2359" <mukasa at jeol.com>
  • Date: Wed, 10 Dec 2003 04:01:41 -0500 (EST)
  • References: <200312090832.DAA19264@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

On Dec 9, 2003, at 3:32 AM, Vladislav Beskrovnyy wrote:

> (* I have sent this message, but I did not find it in the group. That 
> is
> why I repaet it *)
>
> Hi, group,
>
> 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.
>

You can try Rationalize.

Regards,

Ssezi


  • References:
    • Real -> Integer
      • From: Vladislav Beskrovnyy <beskrovn@phlam.univ-lille1.fr>
  • Prev by Date: RE: Real -> Integer
  • Next by Date: Re: Real -> Integer
  • Previous by thread: Real -> Integer
  • Next by thread: Re: Real -> Integer