Lisp HUG Maillist Archive

Is there a built-in way to decode/encode IEEE754 float number?

Hi, Dear LispWorks Users

I'm trying to (re-)implement SNMP protocol [1], some part need encode a
single-float number into bytes which follow IEEE754 spec, and decode
these bytes.

I think maybe I needn't implement IEE754 by myself if LispWorks store
single-float number in the same format, am I right?
is there any built-in function or method to do this? Only for LispWorks
is OK.

Thanks.

Chun Tian (binghe)

[1] cl-net-snmp, a pure snmp package.
http://common-lisp.net/project/cl-net-snmp/



Re: Is there a built-in way to decode/encode IEEE754 float number?

Chun Tian (binghe) wrote:
> Hi, Dear LispWorks Users
>
> I'm trying to (re-)implement SNMP protocol [1], some part need encode a
> single-float number into bytes which follow IEEE754 spec, and decode
> these bytes.
>
> I think maybe I needn't implement IEE754 by myself if LispWorks store
> single-float number in the same format, am I right?
> is there any built-in function or method to do this? Only for LispWorks
> is OK.
>   
http://www.cl-user.net/asp/search?search=ieee

Cheers,

Marc


Updated at: 2020-12-10 08:45 UTC