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

Consing by ROUND, TRUNCATE, FLOOR, and CEILING



I have been working with some graphics primatives that need to convert a
ratio to a fixnum.   I discovered that ROUND, TRUNCATE, and FLOOR
generate 3 words of structure consing while CEILING makes 9 words when 
they are given a ratio as a single argument.    This generates lots of
garbage.    Is there a function that will convert a ratio to a fixed
number without all that garbage?

Mac Michaels    <mac@mcc.com>