Bill Allombert on Fri, 10 Jun 2005 14:43:19 +0200


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: dumb question about rationals


On Fri, Jun 10, 2005 at 10:59:19AM +0200, Vincent Torri wrote:
> 
> 
> On Thu, 9 Jun 2005, Bill Allombert wrote:
> 
> >On Thu, Jun 09, 2005 at 04:25:12PM +0200, Vincent Torri wrote:
> >>i've not thought about a too lage integer. I'll check that. There is no
> >>way to get a long long ? only long ?
> >
> >Not currently, though you can emulate it through division with
> >remainder or by reading the t_INT mantissa directly.
> >
> >What do you want to di that would require such feature ?
> 
> I need the exact value of the fraction.

Sure, but why do you need it as a long long ? It is quite possible
for the numerator to be too large to fit in a long long, and whatever
you can do with a long long, you can do it with a t_INT.

Cheers,
Bill.