safeDivideFraction MethodStatic

Return numerator divided by denominator.

safeDivideFraction(numerator: number, denominator: number, defaultResult: number): number

@returns return numerator/denominator but if the ratio exceeds largeFractionResult, return defaultResult.

Parameter Type Description
numerator number the numerator
denominator number the denominator
defaultResult number  

Returns - number

return numerator/denominator but if the ratio exceeds largeFractionResult, return defaultResult.

Defined in

Last Updated: 14 November, 2024