[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: integer-decode-float usage question
- To: Jeff Mincy <email@example.com>
- Subject: Re: integer-decode-float usage question
- From: firstname.lastname@example.org (Sandra J Loosemore)
- Date: Tue, 27 Oct 87 22:07:23 MST
- Cc: email@example.com, firstname.lastname@example.org
- In-reply-to: Jeff Mincy <mincy@Think.COM>, Tue, 27 Oct 87 21:14 EST
I guess the real problem I'm having is one of terminology: the "exponent"
returned by INTEGER-DECODE-FLOAT doesn't have the usual interpretation
as the power of 2 (or whatever the float radix is) that you multiply
the fractional part of the number by.
This is at least the third time I've had to do a conversion between one
floating point format and another. I've found myself wishing that, as
long as CL provides portable primitives for inquiring about the floating
point representations native to a particular implementation, it would
also provide a function like INTEGER-DECODE-FLOAT that lets you ask for
the same kinds of numbers but for some other float radix and precision.
Or at least some more specific documentation on how users can do this
themselves, given the existing primitives.