Fortran.Epsilon Method

Definition

Namespace: Numerics.NET
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.3

Overload List

Epsilon(Double) Gets the smallest floating-point number that, when added to 1, gives a result different from 1.
Epsilon(Single) Gets the smallest floating-point number that, when added to 1, gives a result different from 1.

Epsilon(Double)

Gets the smallest floating-point number that, when added to 1, gives a result different from 1.
C#
public static double Epsilon(
	double x
)

Parameters

x  Double
A dummy real number.

Return Value

Double
Always returns 2.22044604925031308e-16 (2^-52).

Epsilon(Single)

Gets the smallest floating-point number that, when added to 1, gives a result different from 1.
C#
public static float Epsilon(
	float x
)

Parameters

x  Single
A dummy real number.

Return Value

Single
Always returns 1.1920929e-07 (2^-23).

See Also