Prelude.FloatType-specialized operators and comparisons; satisifes ARITH.
include module type of struct include Stdlib.Float endval classify_float : float -> fpclass(bankers x) converts x to the nearest float whose fractional part is zero (i.e. the nearest integer, represented as a float so as to preserve NaN) using Banker's Rounding aka round-half-to-even as tie-breaking rule. See Wikipedia.
(roundto m x) rounds x to the nearest multiple of m.
For example, round 2.1784 dollars to whole cents:
(roundto 0.01 2.1784) = 2.18