Fix2SmallFract
Fixed aFixedInt; is the Fixed value to be converted integer. A SmallFract value can represent a value between 0 and 65,535. The and HSVColor records. You can use this function if you need to convert SmallFract values to or from Fixed values. (They can be assigned directly to and from short integers.)
Returns: a 16-bit SmallFract value, equivalent to aFixedInt to the best precision possible for the data type.
Notes: A SmallFract is the fractional part of a Fixed number, can be assigned directly to and from a short , and represents values between 0 and 65,535.
By using a SmallFract while short is used as an unsigned integer-sized problems with sign extensions in the conversion math.