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

Re: Nitpick with FLOOR etc.

This page is part of the web mail archives of SRFI 70 from before July 7th, 2015. The new archives for SRFI 70 contain all messages, not just those from before July 7th, 2015.



One thing that is clear from inspecting code that actually
uses FLOOR, CEILING, etc, is that there is a very strong
usage pattern; the procedure inexact->exact is almost ALWAYS
called on the result.

I think standard library macros ought to capture and standardize
this usage.

(xfloor x) <==> (inexact->exact (floor x))
(xceiling x) <==> (inexact->exact (ceiling x)
(xround x) <==> (inexact->exact (round x))

			Bear