HP-UX Reference (11i v2 03/08) - 3 Library Functions N-Z (vol 7)
p
pow(3M) pow(3M)
PA-RISC
If x and y are both zero,
pow() returns 1.0.
If x or y is NaN,
pow()
returns NaN.
If x is zero and y is a negative finite number,
pow() returns −HUGE_VAL (equal to −INFINITY).
If x is finite and less than zero and y is finite and not an integer,
pow() returns NaN.
If the correct value would overflow,
pow() returns ±HUGE_VAL (equal to +/-INFINITY).
ERRORS
If x is zero and y is less than zero,
pow() sets errno to [EDOM].
If x is finite and less than zero and y is finite and not an integer,
pow() sets errno to [EDOM].
If the correct value would overflow,
pow() sets errno to [ERANGE].
HP-UX
libm functions on Itanium-based systems do not set
errno by default. For
errno setting, com-
pile with the
+Olibmerrno option.
SEE ALSO
cbrt(3M), compound(3M), cpow(3M), exp(3M), log(3M), scalbln(3M), scalbn(3M), sqrt(3M), math(5).
STANDARDS CONFORMANCE
pow() : SVID3, XPG4.2, ANSI C, ISO/IEC C99 (including Annex F, ‘‘IEC 60559 floating-point arith-
metic’’)
powf(), powl() : ISO/IEC C99 (including Annex F, ‘‘IEC 60559 floating-point arithmetic’’)
Section 3−−710 Hewlett-Packard Company − 3 − HP-UX 11i Version 2: August 2003