Click or drag to resize
Accord.NET (logo)

RationalRound Method

Rounds a Rational to the nearest integral value.

Namespace:  Accord.Math
Assembly:  Accord (in Accord.dll) Version: 3.8.0
Syntax
public static int Round(
	Rational x
)
Request Example View Source

Parameters

x
Type: Accord.MathRational
The number to round.

Return Value

Type: Int32
The rounded number.
Exceptions
ExceptionCondition
DivideByZeroExceptionThe denominator of x is zero.
See Also