Skip to main content
Skip table of contents

f$Epsilon


f$Epsilon

Set or read numerical precision, e.g. for comparison operations on floating values. The condition

Number1 == Number2


is realized internally as

Number1 < Number2 + Epsilon AND Number1 > Number2 - Epsilon


The standard system default setting is 1E-8.

Syntax:

NewDelta = f$Epsilon( [Delta] )

 

Argument

Type

Meaning

 

Delta

Decimal

New numerical precision value (can be omitted)
If the parameter is left out, the current setting is read.

Result:

Decimal

Numerical precision currently set

Example:

Read current setting:
Delta = f$Epsilon( ) → Delta = 1E-8

Set new value:
Delta = f$Epsilon( 1E-4 ) → Delta = 1E-4

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.