Skip to content

Modern Math Infinity

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

Home › Math Library › Math Library › Infinity

Infinity

Returns positive infinity as a Double.

Syntax

Infinity( )

Examples

#import "std/numeric"
using numeric

dim as float64 inf = Infinity( )

print IsInfinite( inf )      '' true
print inf > 1e308            '' -1 (true)

'' Arithmetic on it stays infinite, and the indeterminate forms are NaN
print IsInfinite( inf + 1 )  '' true
print IsNaN( inf - inf )     '' true

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

Clone this wiki locally