D
Dr John Stockton
When rounding (or truncating) a number which may be either positive or
negative, it is sometimes necessary to round either towards plus
infinity or towards minus infinity. But those are special cases.
Normally, however, rounding should be symmetrical about zero; rounding X
should give the same digits as rounding -X, for all X.
Some of the signed routines which have been quoted here and elsewhere
are unsymmetrical.
negative, it is sometimes necessary to round either towards plus
infinity or towards minus infinity. But those are special cases.
Normally, however, rounding should be symmetrical about zero; rounding X
should give the same digits as rounding -X, for all X.
Some of the signed routines which have been quoted here and elsewhere
are unsymmetrical.