Query: quantized32
OS: hpux
Section: 3m
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
quantized64(3M) quantized64(3M)NAMEquantized64(), quantized128(), quantized32() - decimal quantize functionsSYNOPSISDESCRIPTIONThe 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.USAGETo 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 VALUEIf 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.ERRORSNo errors are defined.SEE ALSOquantexpd64(3M), samequantumd64(3M), math(5).STANDARDS CONFORMANCEThese functions conform to ISO/IEC TR 24732, "Extension for the programming language C to support decimal floating-point arithmetic". HP Integrity Server Only quantized64(3M)
Related Man Pages |
---|
ilogbd128(3m) - hpux |
quantexpd128(3m) - hpux |
quantexpd64(3m) - hpux |
remainderd128(3m) - hpux |
remainderd64(3m) - hpux |
Similar Topics in the Unix Linux Community |
---|
cut |
Displaying exponent value as string in PERL script |
[Solved] To the power of using awk |
How to round up value upto 2 decimal places using sed? |
Printing with decimal places from last 4 digits |