[Top][All Lists]

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

rationalize returns inexact results.

From: Anye Li
Subject: rationalize returns inexact results.
Date: Thu, 24 Jul 2008 01:15:04 -0400


I've noticed that rationalize returns inexact results in Guile 1.8.3 (my apologies if this has already been fixed), e.g. (rationalize 0.333333 0.01) returns 0.333333333333333, which is inexact.  This is contrary to the claim made by (help rationalize).  Since Guile now supports exact rationals, shouldn't it return an exact result, e.g. 1/3 for the example given above?


Anye Li

reply via email to

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