Module Name: src Committed By: riastradh Date: Thu Mar 17 03:26:15 UTC 2016
Modified Files: src/lib/libc/stdlib: strtod.3 Log Message: strtod yields ERANGE for below-subnormal magnitudes, not underflow. For a floating-point computation, in the language of IEEE 754, `underflow' means the output was rounded and is too small to be represented *normally*. There are many nonzero floating-point numbers to which the exact output may have been rounded -- namely subnormals. The condition under which strtod returns ERANGE for small magnitudes is when the magnitude of the exact result is so small it is rounded to zero, not even to a subnormal. While here, use parallel language about large magnitudes instead of the (albeit correct) word `overflow', to avoid temptation to treat `underflow' as the opposite notion with zero instead of infinity. To generate a diff of this commit: cvs rdiff -u -r1.20 -r1.21 src/lib/libc/stdlib/strtod.3 Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.