ldexp.gml
来自「开放源码的编译器open watcom 1.6.0版的源代码」· GML 代码 · 共 36 行
GML
36 行
.func ldexp
#include <math.h>
double ldexp( double x, int exp );
.ixfunc2 '&Math' &func
.funcend
.desc begin
The &func
function multiplies a floating-point number by an integral power of 2.
A range error may occur.
.desc end
.return begin
The &func function returns the value of
.arg x
times 2 raised to the power
.arg exp.
.return end
.see begin
.seelist ldexp frexp modf
.see end
.exmp begin
#include <stdio.h>
#include <math.h>
void main()
{
double value;
.exmp break
value = ldexp( 4.7072345, 5 );
printf( "%f\n", value );
}
.exmp output
150.631504
.exmp end
.class ANSI
.system
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?