[Top][All Lists]

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

Re: ratio implementation

From: Kevin Ryde
Subject: Re: ratio implementation
Date: Wed, 15 Oct 2003 09:37:25 +1000
User-agent: Gnus/5.1003 (Gnus v5.10.3) Emacs/21.3 (gnu/linux)

Marius Vollmer <address@hidden> writes:
> I don't have the details ready yet, but I think I'll try to come up
> with code for this... (when it isn't already in GMP).

gmp has an mpq_set_d, which does what you imagine, extract the bits to
make a binary fraction.  The actual implementation is uglified by the
details of gmp internals though.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]