Fortran.Precision Method

Definition

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

Overload List

Precision(Double) Gets the approximate number of decimal digits of precision of a floating-point number.
Precision(Single) Gets the approximate number of decimal digits of precision of a floating-point number.

Precision(Double)

Gets the approximate number of decimal digits of precision of a floating-point number.
C#
public static int Precision(
	double x
)

Parameters

x  Double
A dummy real number.

Return Value

Int32
Always returns 15.

Precision(Single)

Gets the approximate number of decimal digits of precision of a floating-point number.
C#
public static int Precision(
	float x
)

Parameters

x  Single
A dummy real number.

Return Value

Int32
Always returns 6.

See Also