ldexp(3) Library Functions Manual ldexp(3) ldexp, ldexpf, ldexpl - 2 Math library (libm, -lm) #include double ldexp(double x, int exp); float ldexpf(float x, int exp); long double ldexpl(long double x, int exp); glibc (. feature_test_macros(7)): ldexpf(), ldexpl(): _ISOC99_SOURCE || _POSIX_C_SOURCE >= 200112L || /* glibc 2.19: */ _DEFAULT_SOURCE || /* Glibc <= 2.19: */ _BSD_SOURCE || _SVID_SOURCE x 2 exp. On success, these functions return x * (2^exp). exp 0, x. x NaN, NaN. x , . , . , HUGE_VAL, HUGE_VALF HUGE_VALL, , x. math_error(7), , . : , errno ERANGE. (FE_OVERFLOW). , errno ERANGE. (FE_UNDERFLOW). attributes(7). +----------------------------+----------------------------------------------------------+--------------------------+ | | | | +----------------------------+----------------------------------------------------------+--------------------------+ |ldexp(), ldexpf(), ldexpl() | | MT-Safe | +----------------------------+----------------------------------------------------------+--------------------------+ C11, POSIX.1-2008. C99, POSIX.1-2001. , double, SVr4, 4.3BSD, C89. frexp(3), modf(3), scalbln(3) () Artyom Kunyov , Azamat Hackimov , Dmitry Bolkhovskikh , Katrin Kutepova , Konstantin Shvaykovskiy , Yuri Kozlov ; GNU (GNU General Public License - GPL, 3 ) , - . - , , () () () <>. Linux 6.9.1 2 2024 . ldexp(3)