aboutsummaryrefslogtreecommitdiff
path: root/ch4
diff options
context:
space:
mode:
authorzlg <zlg@zlg.space>2013-02-21 03:34:20 -0600
committerzlg <zlg@zlg.space>2013-02-21 03:34:20 -0600
commit43f5f3755d7fa66d9f525fe94fcc1517d3be55b9 (patch)
tree61bf9089849c9ebd3e4874c0b5cba1269512de10 /ch4
parentSolve Exercise 2-01: Variable limits (diff)
downloadknr-43f5f3755d7fa66d9f525fe94fcc1517d3be55b9.tar.gz
knr-43f5f3755d7fa66d9f525fe94fcc1517d3be55b9.tar.bz2
knr-43f5f3755d7fa66d9f525fe94fcc1517d3be55b9.tar.xz
knr-43f5f3755d7fa66d9f525fe94fcc1517d3be55b9.zip
Correct 2-01 solution
FLT_MIN and DBL_MIN refer to the lowest _positive number_ representable in floating-point form on the machine, not the lowest _negative number_. Subtracting FLT_MAX from 0 will give you the minimum.
Diffstat (limited to 'ch4')
0 files changed, 0 insertions, 0 deletions