ApproximateFraction

TiffRational.ApproximateFraction method (1 of 4)

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


TiffRational.ApproximateFraction method (2 of 4)

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


TiffRational.ApproximateFraction method (3 of 4)

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


TiffRational.ApproximateFraction method (4 of 4)

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