TiffSRational.ApproximateFraction

ApproximateFraction(double, double)

Approximates the provided value to a fraction.

public static TiffSRational 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 TiffSRational 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 TiffSRational 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 TiffSRational ApproximateFraction(float value)
ParameterTypeDescription
valueSingleThe value.

Return Value

A rational number having error less than Epsilon.

See Also