in reply to Re^2: How to convert negative and positive floating points to binary and vice versa
in thread How to convert negative and positive floating points to binary and vice versa
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: How to convert negative and positive floating points to binary and vice versa
by thanos1983 (Parson) on Sep 21, 2014 at 02:25 UTC | |
|
Re^4: How to convert negative and positive floating points to binary and vice versa
by thanos1983 (Parson) on Sep 21, 2014 at 02:26 UTC |