ceil.gml
来自「开放源码的编译器open watcom 1.6.0版的源代码」· GML 代码 · 共 34 行
GML
34 行
.func ceil
#include <math.h>
double ceil( double x );
.ixfunc2 '&Math' &func
.funcend
.desc begin
The &func function (ceiling function)
computes the smallest integer not less than
.arg x.
.desc end
.return begin
The &func function returns the smallest integer not less than
.arg x,
expressed as a
.id double.
.return end
.see begin
.seelist ceil floor
.see end
.exmp begin
#include <stdio.h>
#include <math.h>
void main()
{
printf( "%f %f %f %f %f\n", ceil( -2.1 ), ceil( -2. ),
ceil( 0.0 ), ceil( 2. ), ceil( 2.1 ) );
}
.exmp output
-2.000000 -2.000000 0.000000 2.000000 3.000000
.exmp end
.class ANSI
.system
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?