isinf.gml
来自「开放源码的编译器open watcom 1.6.0版的源代码」· GML 代码 · 共 42 行
GML
42 行
.func isinf
#include <math.h>
int isinf( x );
.funcend
.*
.desc begin
The &func macro determines whether its argument value is an infinity
(positive or negative).
First, an argument represented in a format wider than its semantic type is
converted to its semantic type. Then determination
is based on the type of the argument.
.np
The argument
.arg x
must be an expression of real floating type.
.desc end
.*
.return begin
The &func macro returns a nonzero value if and only if its argument has
an infinite value.
.return end
.*
.see begin
.im seefpcls isinf
.see end
.*
.exmp begin
#include <math.h>
#include <stdio.h>
.exmp break
void main( void )
{
printf( "zero %s an infinite number\n",
isinf( 0.0 ) ? "is" : "is not" );
}
.exmp output
zero is not an infinite number
.exmp end
.*
.class ANSI
.system
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?