Fortran.Nint Method

Definition

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

Overload List

Nint(Double) Rounds a value to the nearest whole number.
Nint<T>(T) Rounds a value to the nearest whole number.

Nint(Double)

Rounds a value to the nearest whole number.
C#
public static int Nint(
	double a
)

Parameters

a  Double
The number to round.

Return Value

Int32
The value a rounded to the nearest integer.

Nint<T>(T)

Rounds a value to the nearest whole number.
C#
public static int Nint<T>(
	T a
)

Parameters

a  T
The number to round.

Type Parameters

T
The type of the number.

Return Value

Int32
The value a rounded to the nearest integer.

See Also