Skip to content

Modern Math IsNormal

Paul Squires edited this page Sep 30, 2026 · 5 revisions

Home › Math Library › Math Library › IsNormal

IsNormal

Syntax

IsNormal( x )

Examples

#import "std/numeric"
using FB

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
Source: docs/math/math.txt in the FBC-Modern repository.

Clone this wiki locally