cplusplus.com cplusplus.com
cplusplus.com   C++ : Reference : C Library : cmath (math.h) : HUGE_VAL
 
- -
C++
Information
Documentation
Reference
Articles
Sourcecode
Forum
Reference
C Library
IOstream Library
Strings library
STL Containers
STL Algorithms
C Library
cassert (assert.h)
cctype (ctype.h)
cerrno (errno.h)
cfloat (float.h)
climits (limits.h)
clocale (locale.h)
cmath (math.h)
csetjmp (setjmp.h)
csignal (signal.h)
cstdarg (stdarg.h)
cstddef (stddef.h)
cstdio (stdio.h)
cstdlib (stdlib.h)
cstring (string.h)
ctime (time.h)
cmath (math.h)
functions:
· acos
· asin
· atan
· atan2
· ceil
· cos
· cosh
· exp
· fabs
· floor
· fmod
· frexp
· ldexp
· log
· log10
· modf
· pow
· sin
· sinh
· sqrt
· tan
· tanh
macro constants:
· HUGE_VAL

-

HUGE_VAL constant
<cmath>

Huge value

A function returns this value when the result of a mathematical operation yields a value that is so large in magnitude that it is not representable with its return type. This is one of the possible range errors, and is signaled by setting errno to ERANGE.

Actually, functions can either return a positive or a negative HUGE_VAL (HUGE_VAL or -HUGE_VAL) to at least indicate the sign of the result.

© The C++ Resources Network, 2000-2007 - All rights reserved
Spotted an error? - contact us