02-17-2012 09:07 AM
Hi,
Does anybody know, why the rounding-function on the numeric palette and also the indexing-connector of the "index array"-function round "1,5" up to "2" and "2,5" down to "2".
I learned that a "5" after the comma will always be rounded up.
Lorand
Solved! Go to Solution.
02-17-2012 09:12 AM
Ive had a quick look in the context help, it rounds the number to the nearest even integer. Bit odd, as you say .5 is normally rounded up,
hope it helps
02-17-2012 09:24 AM - edited 02-17-2012 09:24 AM
Hi Lorand,
this has been asked before and probably will be asked again...
But Wikipedia has the explanation: bankers' rounding is default for an IEEE754 implementation.