Fortran.Epsilon Method
Definition
Namespace: Numerics.NET
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.2
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.2
Overload List
Epsilon( | Gets the smallest floating-point number that, when added to 1, gives a result different from 1. |
Epsilon( | 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.
public static double Epsilon(
double x
)
Parameters
- x Double
- A dummy real number.
Return Value
DoubleAlways 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.
public static float Epsilon(
float x
)
Parameters
- x Single
- A dummy real number.
Return Value
SingleAlways returns 1.1920929e-07 (2^-23).