[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Consing by ROUND, TRUNCATE, FLOOR, and CEILING
- To: hoss%scrc-riverside.arpa@CSNET-RELAY
- Subject: Consing by ROUND, TRUNCATE, FLOOR, and CEILING
- From: "Wilson M. Michaels" <mac%mcc.com@CSNET-RELAY>
- Date: Mon, 25 Aug 86 14:15 CDT
- Cc: slug%mcc.com@CSNET-RELAY
- Resent-date: Thu 28 Aug 86 13:25:19-CDT
- Resent-from: <CMP.SLUG%r20.utexas.edu@CSNET-RELAY>
- Resent-message-id: <12234461696.60.CMP.SLUG@R20.UTEXAS.EDU>
- Resent-to: SLUG:;
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>