approximate_fraction method

approximate_fraction

Approximates the provided value to a fraction.

Returns

A rational number having error less than TiffSRational.Epsilon.

def approximate_fraction(self, value):
    ...
ParameterTypeDescription
valuefloatThe value.

approximate_fraction

Approximates the provided value to a fraction.

Returns

A rational number having error less than TiffSRational.Epsilon.

def approximate_fraction(self, value):
    ...
ParameterTypeDescription
valuefloatThe value.

approximate_fraction

Approximates the provided value to a fraction.

Returns

A rational number having error less than epsilon.

def approximate_fraction(self, value, epsilon):
    ...
ParameterTypeDescription
valuefloatThe value.
epsilonfloatThe error allowed.

approximate_fraction

Approximates the provided value to a fraction.

Returns

A rational number having error less than epsilon.

def approximate_fraction(self, value, epsilon):
    ...
ParameterTypeDescription
valuefloatThe value.
epsilonfloatThe error allowed.

See Also