MathMethods.DoubleToFraction(Double, Int32, Double, Double) Method

Parses a given floating number into the fraction components.

Definition

Namespace: SMath.Manager
Assembly: SMath.Manager (in SMath.Manager.dll) Version: 1.73.9126.0
C#
public static void DoubleToFraction(
	double value,
	int round,
	out double num,
	out double den
)

Parameters

value  Double
A floating number to parse.
round  Int32
Value of the decimal symbols to round a value to.
num  Double
The result numerator.
den  Double
The result denominator.

Exceptions

See Also