[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
## Re: r5rs section 6.2.3 inexactness and rational sqrt

**From**: |
Kevin Ryde |

**Subject**: |
Re: r5rs section 6.2.3 inexactness and rational sqrt |

**Date**: |
Sat, 17 Apr 2004 09:23:40 +1000 |

**User-agent**: |
Gnus/5.110002 (No Gnus v0.2) Emacs/21.3 (gnu/linux) |

Ray Lehtiniemi <address@hidden> writes:
>
>* guile> (floor 1234)*
>* 1234.0*
>
>* i'd expect that to be an exact integer, and indeed r5rs section 6.2.3*
>* says that (floor n) should return an exact integer as long as the input*
>* is exact:*
Yep, that looks wrong. Marius applied a fix not so long ago in the
head, lobby him for the same in 1.6.
>* guile> (rational? (sqrt 6))*
>* #t*
>
>* should be #f, i think....*
Alas, sqrt 6 comes out as a flonum, which is rational.