[prev in list] [next in list] [prev in thread] [next in thread] 

List:       gmp-discuss
Subject:    integer part of an mpf number
From:       sisyphus1 () optusnet ! com ! au (Sisyphus)
Date:       2007-03-03 22:17:17
Message-ID: 99160F45810C4D7B83158062E5AD6108 () desktop2
[Download RAW message or body]


----- Original Message ----- 
From: "Helmut Jarausch" <jarausch at skynet.be>
To: <gmp-discuss at swox.com>
Sent: Sunday, March 04, 2007 3:11 AM
Subject: integer part of an mpf number


> Hi,
>
> I'm new to gmp and I couldn't find a means
> to get the integer part of a long float (mpf) number.
> Something like a cast  (mpz_t)( an_mpf_variable)
>

Sounds like you want mpz_set_f ( 
http://gmplib.org/manual/Assigning-Integers.html#Assigning-Integers ).

Cheers,
Rob 


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic