ldexp(3) Library Functions Manual ldexp(3) ldexp, ldexpf, ldexpl - 2 (libm, -lm) #include double ldexp(double x, int e); float ldexpf(float x, int e); long double ldexpl(long double x, int e); 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 These functions return the result of multiplying the floating-point number x by 2 raised to the power e. On success, these functions return x * (2^e). If e is zero, then x is returned. 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 , Kirill Rekhov ; GNU (GNU General Public License - GPL, 3 ) , - . - , , () () () <>. Linux 6.15 19 2025 . ldexp(3)