Next: , Up: More Pre-Scheme packages


9.4.1 Floating point operation

Since Pre-Scheme's strict static type system would not permit overloading of the arithmetic operators for integers & floats, it provides a different set of operators for floats. These names are all exported by the ps-flonums structure.

— procedure: fl+ augend addend ... –> float
— procedure: fl- float –> float
— procedure: fl- minuend subtrahend –> float
— procedure: fl* multiplier multiplicand ... –> float
— procedure: fl/ divisor dividend –> float
— procedure: fl= floata floatb –> boolean
— procedure: fl< floata floatb –> boolean
— procedure: fl> floata floatb –> boolean
— procedure: fl<= floata floatb –> boolean
— procedure: fl>= floata floatb –> boolean

All of these operations flop correspond as floating point variations of their op integer equivalents.