Fraction

This function returns the fractional remainder after dividing two numbers.

Description

The fractional remainder after division.

Type

NUMERIC

Arguments

Type

Meaning

1

NUMERIC

the numerator

2

NUMERIC

the denominator

Evaluation

Converts the numerator into the units of the denominator, divides the result by the denominator, then returns the fractional portion of the division. In other words:

The returned value has the units of "factor".

Comments

Note that if the scalar portion of the denominator is 1.0, then this function simply returns the fractional portion of the first argument when it is expressed in the units of the denominator.

If the values are of a different unit type, this function aborts the run with an error.

 
Fraction("Whitewater Creek.Inflow"[], 1.0 "cms")
 
If Whitewater Creek.Inflow is 134.3 cfs, the above function returns:
0.80295250 "cms"