>Might it be worthwhile to update the native ceil/floor HB functions to the more
advanced functionality?
Nice idea, sir! While there is no objection to making such a
thing native, may I suggest, since you have prototype code, to
create a .lib of those functions (noting that FLOOR and CEIL
should already work to provide INTEGER/LONG results. The
"range" argument you mention seems to refer to rounding up or
down to a given number of fractional decimals -- that is, to
give an entirely different numeric type as a result -- namely,
DOUBLE or other floating type. Come to think of it, you might
consider making the outputs REAL10 giving you the best shot at
digital representation of your round up/down in range concept.
HTH, Jim