c/numeric/math/scalbn

@1-3,5-7@ Multiplies a floating point value by flt_radix raised to power. @4,8@ Type-generic macros: If has type,  or  is called. Otherwise, if has integer type or the type,  or  is called. Otherwise, or  is called, respectively.

Return value
If no errors occur, multiplied by flt_radix to the power of  ($arg&times;FLT_RADIXexp$) is returned.

If a range error due to overflow occurs, huge_val,, or is returned.

If a range error due to underflow occurs, the correct result (after rounding) is returned.

Error handling
Errors are reported as specified in.

If the implementation supports IEEE floating-point arithmetic (IEC 60559),
 * Unless a range error occurs, fe_inexact is never raised (the result is exact)
 * Unless a range error occurs, the current rounding mode is ignored
 * If is ±0, it is returned, unmodified
 * If is ±∞, it is returned, unmodified
 * If is 0, then  is returned, unmodified
 * If is NaN, NaN is returned