So you want a floating-point number packed into 8 bits? Why?
I'm not sure if there is a standardized format for those, since they're not all too useful, I've only found them referenced in tutorials and university courses on floating-point numbers for students to practice on (e.g. http://sandbox.mc.edu/~bennet/cs110/textbook/module4_2.html or http://www.toves.org/books/float/#s2 ). Wikipedia has an article on Minifloats. Perl doesn't have a built-in conversion for that.
The smallest standardized IEEE format is 16 bits, and even those have their limitations.
In reply to Re^3: How to convert negative and positive floating points to binary and vice versa
by Anonymous Monk
in thread How to convert negative and positive floating points to binary and vice versa
by thanos1983
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |