Skip to content

Modern Math IsInfinite

Paul Squires edited this page Oct 19, 2026 · 5 revisions

Home › Math Library › Math Library › IsInfinite

IsInfinite

Returns true if the value is plus or minus infinity.

Syntax

IsInfinite( x )

Examples

#import "std/numeric"
using numeric

print IsInfinite( Infinity( ) )       '' true
print IsInfinite( NegInfinity( ) )    '' true -- either sign
print IsInfinite( NaN( ) )            '' false
print IsInfinite( 1.0 )               '' false

Library: Math Library
Category: Math Library
Documented under: Nothing Becomes A Keyword

Clone this wiki locally