Skip to content

Modern Math CIsFinite

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

Home › Math Library › Math Library › CIsFinite

CIsFinite

Returns true if both parts of a complex number are finite.

Syntax

CIsFinite( byref z as Complex ) as boolean

Notes

  • Finite means neither infinite nor NaN, in both components.
  • CIsFinite, CIsInfinite and CIsNaN partition the complex numbers: exactly one of the three is true for any operand.

Examples

#import "std/numeric"
using numeric

print CIsFinite( CSet( 3, 4 ) )            '' true
print CIsFinite( CSet( 3, Infinity( ) ) )  '' false
print CIsFinite( CNaN( ) )                 '' false

Library: Math Library
Category: Math Library
Documented under: Members

Clone this wiki locally