Ieee 754
dafranro
Posts: 7
Someone could tell me how can I convert a float to IEEE 754 format number, thanks.
0
Comments
Which brings up the question... why do you care about the representation? Please don't tell me you've found a device that wants a binary representation of a IEEE 754 float in its control protocol...
Jeremy
That got me thinking "but you can't get to it" (meaning that you can only do arithmetic and ASCII conversions with floats) so I did an experiment. The only method I could think of that might work was type_cast to a string but it just throws a "GetString error 1".
...because typecasting a pointer in C means "get out of my way and let me shoot myself in the foot", where normal typecasts (in C and NetLinx) actually try to make a sane conversion.
Jeremy