Is seems like it would be IE-38, which would make the exponent 127-127. But when I add 1E10 and 1E-32, I get 1E10 which makes me think that 1E-32 is so small it's not being properly represented.
You are mixing two different terms:
~10^-38
) and 1.0 + eps != 1.0
, for single precision it is about 2^-23
For bigger value 1e10
minimal summand is ~1e10 * macheps
Simplified example: for 4 decimal digits you can represent values 100.0
and 0.001
, but 100.0 + 0.001 = 100.0
because true sum 100.001
cannot fit into 4 decimal places.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.