Guardian Native C Library Calls Reference Manual (G06.28+, H06.04+)

pow(3) Guardian Native C Library Calls Reference Manual
If the value of x is positive or negative 0.0 (zero) and the value of y is not an odd integral
value but is greater than 0.0 (zero), positive 0.0 (zero) is returned.
ERRORS
If any of the following conditions occurs, the pow( ) function sets errno to the corresponding
value:
[EDOM] One of the following conditions exists:
The value of x is negative and the value of y is nonintegral.
The value of x is 0.0 (zero) and the value of y is negative.
[ERANGE] The value to be returned would have caused an under
ow or an overow.
RELATED INFORMATION
Functions: exp(3), fp_class(3), isnan(3), log(3), log10(3), sinh(3).
STANDARDS CONFORMANCE
This function conforms to the XPG4 Version 2 specication with extensions when used for IEEE
oating-point format data. This function conforms to the XPG4 Version 2 specication without
extensions when used for Tandem oating-point data.
The XPG4 Version 2 specication leaves some features to the implementing vendor to dene.
The following features are affected in the HP implementation:
For IEEE oating-point data, this function does not set errno to [EDOM] if the value of
y is NaN.
The errno value of [EDOM] is used instead of [ERANGE] when the value of x is 0.0
(zero) and the value of y is negative.
524 Hewlett-Packard Company 527192-005