[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: integer-decode-float usage question
- To: Jeff Mincy <firstname.lastname@example.org>
- Subject: Re: integer-decode-float usage question
- From: email@example.com (Sandra J Loosemore)
- Date: Tue, 27 Oct 87 22:07:23 MST
- Cc: firstname.lastname@example.org, email@example.com
- 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.