Fortran.Nint 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
Nint( | 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.
public static int Nint(
double a
)
Parameters
- a Double
- The number to round.
Return Value
Int32The value a rounded to the nearest integer.
Nint<T>(T)
Rounds a value to the nearest whole number.
public static int Nint<T>(
T a
)
Parameters
- a T
- The number to round.
Type Parameters
- T
- The type of the number.
Return Value
Int32The value a rounded to the nearest integer.