Fortran.Nint Method

Definition

Namespace: Extreme.Mathematics.LinearAlgebra.Implementation
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23

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