Skip to content

Modern Math IsNormal

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

Home › Math Library › Math Library › IsNormal

IsNormal

Returns true if the value is finite, not zero and not subnormal.

Syntax

IsNormal( x )

Examples

#import "std/numeric"
using numeric

print IsNormal( 1.0 )         '' true
print IsNormal( 0.0 )         '' false -- zero is not normal
print IsNormal( MinSubnormalDouble( ) )       '' false
print IsNormal( NaN( ) )      '' false

'' Normal means full precision: finite, non-zero, and not subnormal

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

Clone this wiki locally