function toFixedPoint input Real u; input Real scaleFactor; input Integer MAX; input Integer MIN; output Integer y; end toFixedPoint;