Originally posted by Durgaprasad Guduguntla:
But rounding of a negative number to a lower value rather than to a next higher value looks strange behavior.
Durga
Rounding gives the "closest" integer (this is by definition, strange or not). In case there's a "tie", the higher integer is chosen, eg.
rounding -3.5 gives -3.0 (as Marlene explained above), and mathematically, -3.0 > -3.5.
Cheers
Harwinder
[ November 09, 2003: Message edited by: Harwinder Bhatia ]