Skip to content

Modern Math IsFinite

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

Home › Math Library › Math Library › IsFinite

IsFinite

Returns true if the value is neither infinite nor NaN.

Syntax

IsFinite( x )

Examples

#import "std/numeric"
using numeric

print IsFinite( 1.0 )         '' true
print IsFinite( Infinity( ) ) '' false
print IsFinite( NaN( ) )      '' false

'' Neither infinite NOR NaN -- the check to make before trusting a value
'' to be arithmetic

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

Clone this wiki locally