Is this possible to extract mantissa and exponent from a float in major R6RS Scheme implementations so that:
v = f x b^e
f - mantissa
b - base
e - exponent
For example: 3.14 = 0.785 x 2^2
If it's not supported, I'd like to have access to flonum's (IEEE 754) bits directly to approach the problem of extracting the above values, but I've found no function to convert flonum to a series of bytes (bytevector).
Thank you.
http://www.r6rs.org/final/html/r6rs-lib/r6rs-lib-Z-H-3.html#node_sec_2.8
Here it is in use:
To verify the result, here is a C program which accesses the bytes directly: