scalbn(), scalbnf(), scalbnl(), scalbln(), scalblnf(), scalblnl() — Load exponent functions
Standards
Standards / Extensions | C or C++ | Dependencies |
---|---|---|
C99 |
both | z/OS V1R7 |
Format
#define _ISOC99_SOURCE
#include <math.h>
double scalbn(double x, int n);
float scalbnf(float x, int n);
long double scalbnl(long double x, int n);
double scalbln(double x, long int n);
float scalblnf(float x, long int n);
long double scalblnl(long double x, long int n);
C++ TR1 C99
#define _TR1_C99
#include <math.h>
float scalbln(float x, long n);
long double scalbln(long double x, long n);
float scalbln(float x, long int n);
long double scalbln(long double x, long int n);
General description
The scalbn() and scalbln() families of functions compute (x * (FLT_RADIX) raised to n) efficiently, not normally, by computing FLT_RADIX raised to n explicitly.
The
radix for z/OS® C applications, FLT_RADIX,
is defined to be 16 under HEX implementation and 2 under IEEE implementation.
Note: The
following table shows the viable formats for these functions. See IEEE binary floating-point for more information about IEEE
Binary Floating-Point.
Function | Hex | IEEE |
---|---|---|
scalbn | X | X |
scalbnf | X | X |
scalbnl | X | X |
scalbln | X | X |
scalblnf | X | X |
scalblnl | X | X |
Restriction: The
scalbnf() and scalblnf() functions do not support the _FP_MODE_VARIABLE
feature test macro.
Returned value
The scalbn() and scalbln() families of functions return (x * (FLT_RADIX) raised to n).
Related information
- math.h
- exp(), expf(), expl() — Calculate exponential function
- expm1(), expm1f(), expm1l() — Exponential minus one
- exp2(), exp2f(), exp2l() — Calculate the base-2 exponential
- frexp(), frexpf(), frexpl() — Extract mantissa and exponent of the floating-point value
- ilogb(), ilogbf(), ilogbl() — Integer unbiased exponent
- ldexp(), ldexpf(), ldexpl() — Multiply by a power of two
- log(), logf(), logl() — Calculate natural logarithm
- logb(), logbf(), logbl() — Unbiased exponent
- log1p(), log1pf(), log1pl() — Natural log of x+1
- log10(), log10f(), log10l() — Calculate base 10 logarithm
- log2(), log2f(), log2l() — Calculate the base-2 logarithm
- modf(), modff(), modfl() — Extract fractional and integral parts of floating-point value