Skip to content

Modern Math ClearFpException

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

Home › Math Library › Math Library › ClearFpException

ClearFpException

Clears one floating-point exception flag and leaves the others alone.

Syntax

ClearFpException( e )

Examples

#import "std/numeric"
using numeric

'' Clears ONE flag, leaving the others alone -- for code that cares
'' about a single condition inside a larger computation
ClearFpExceptions( )

dim as float64 z = 0.0
dim as float64 r = 1.0 / z
print TestFpException( FP_DIVBYZERO )     '' true

ClearFpException( FP_DIVBYZERO )
print TestFpException( FP_DIVBYZERO )     '' false

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

Clone this wiki locally