Returning floats from drivers

Sean Hinde <>
Thu Oct 4 18:23:44 CEST 2001


Hi,

I'd like to return a floating point number from a driver using the
driver_output_term mechanism. It would appear that this is an unsupported
option at present.

Are there any plans to support this?

It is not totally obvious what the format of the float should be, though
binaries currently support encode/decode to/from IEEE format so that would
appear to be a reasonable solution.

Rgds,
Sean





NOTICE AND DISCLAIMER:
This email (including attachments) is confidential.  If you have received
this email in error please notify the sender immediately and delete this
email from your system without copying or disseminating it or placing any
reliance upon its contents.  We cannot accept liability for any breaches of
confidence arising through use of email.  Any opinions expressed in this
email (including attachments) are those of the author and do not necessarily
reflect our opinions.  We will not accept responsibility for any commitments
made by our employees outside the scope of our business.  We do not warrant
the accuracy or completeness of such information.




More information about the erlang-questions mailing list