Skip to main content

fraction_as_int

No overview available.

def fraction_as_int(
numerator: int,
denominator: int
) - > int

Converts a fractional value into an integer representation.

Parameters

NameTypeDescription
numeratorintThe top number in the fraction to be divided.
denominatorintThe bottom number in the fraction used as the divisor.

Returns

TypeDescription
intThe integer result of the fraction conversion.