FixRatio
FixRatio Get fixed-point quotient of two integers short numer ; numerator; number to be divided short denom ; denominator; divisor
returns 32-bit value; low word is fraction
FixRatio performs fixed-point division on two integers, returning the quotient as a 32-bit Fixed data type. denom are 16-bit signed integers, in the range -32767 to 32767
Returns: a 32-bit Fixed value. The high 16 bits are the integer portion; the low word is the fractional portion.
Notes: This function will happily divide by 0; if denom is 0, this returns
0x7FFFFFFF when numer is positive or 0x8000001 when numer is negative.
This is handy for calculating the spacing needed for drawing justified text