TiffRational.ApproximateFraction

ApproximateFraction(double, double)

Approximates the provided value to a fraction.

public static TiffRational ApproximateFraction(double value, double epsilon)
ParameterTypeDescription
valueDoubleThe value.
epsilonDoubleThe error allowed.

Return Value

A rational number having error less than epsilon.

See Also


ApproximateFraction(double)

Approximates the provided value to a fraction.

public static TiffRational ApproximateFraction(double value)
ParameterTypeDescription
valueDoubleThe value.

Return Value

A rational number having error less than Epsilon.

See Also


ApproximateFraction(float, double)

Approximates the provided value to a fraction.

public static TiffRational ApproximateFraction(float value, double epsilon)
ParameterTypeDescription
valueSingleThe value.
epsilonDoubleThe error allowed.

Return Value

A rational number having error less than epsilon.

See Also


ApproximateFraction(float)

Approximates the provided value to a fraction.

public static TiffRational ApproximateFraction(float value)
ParameterTypeDescription
valueSingleThe value.

Return Value

A rational number having error less than Epsilon.

See Also