Click to See Complete Forum and Search --> : Constant, Symbol, or equiv for the maximum DOUBLE value?
SigEpUCI
May 4th, 2003, 04:34 PM
Is there a constant, symbol, or equivalent defined in some standard include that represents the maximum possible double value?
I also need one for the maximum possible int value.
TIA,
Jeff
NigelQ
May 4th, 2003, 04:40 PM
Max Double size:
DBL_MAX
Max Float Size:
FLT_MAX
Max Integer Size:
INT_MAX
Also FLT_MIN for minimum float value etc. etc.
Hope this helps,
- Nigel
SigEpUCI
May 4th, 2003, 04:47 PM
Thanks!!!
emmenjay
May 5th, 2003, 12:15 AM
For C++ you can also use
#include <limits>
std::numeric_limits<double>::min()
codeguru.com
Copyright Internet.com Inc., All Rights Reserved.