Operations<T>.Round Method

Definition

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

Overload List

Round(T) Rounds a number to the specified number to the nearest integer.
Round(T, Int32) Rounds a number to the specified number of decimal digits.

Round(T)

Rounds a number to the specified number to the nearest integer.
C#
public static T Round(
	T left
)

Parameters

left  T
 

Return Value

T

Round(T, Int32)

Rounds a number to the specified number of decimal digits.
C#
public static T Round(
	T left,
	int right
)

Parameters

left  T
 
right  Int32
 

Return Value

T

See Also