quantized64(3M)quantized64(3M)NAMEquantized64(), quantized128(), quantized32() - decimal quantize func‐
tions
SYNOPSISDESCRIPTION
The function sets the exponent of x to the exponent of y, while
attempting to keep the value the same. If the exponent is being
increased, the value is correctly rounded according to the current
(decimal) rounding mode.
is useful for rounding to a specified number of decimal places. For
example, will round x to four places to the right of the decimal point
(provided the has enough digits to do so).
is a version of it takes arguments and returns a result.
is a version of it takes arguments and returns a result.
These math functions are supported for HP-UX 11i Version 3 September
2008 Update and forward.
USAGE
To use any of these functions, compile with the option.
Make sure your program defines and then includes
Link in the math library by specifying or on the linking command line.
For more information, see the at the following site:
RETURN VALUE
If the exponent of x is being increased and rounding produces a result
whose numerical value is different from x, then raises the inexact
exception.
If the exponent of x is being decreased and the of the result has more
digits than the type would allow, returns NaN and raises the invalid
exception.
If one or both arguments are NaN, then returns NaN.
Otherwise, if only one argument returns NaN and raises the invalid
exception.
If both arguments returns x.
ERRORS
No errors are defined.
SEE ALSOquantexpd64(3M), samequantumd64(3M), math(5).
STANDARDS CONFORMANCE
These functions conform to ISO/IEC TR 24732, "Extension for the pro‐
gramming language C to support decimal floating-point arithmetic".
HP Integrity Server Only quantized64(3M)