the halfEvenRounding
Global Property
(Added in SenseTalk 2.13)
When set to "True", causes the round and roundToNearest functions to use half-even rounding (sometimes called "round to even" or "banker's rounding"). When the value being rounded is exactly halfway between the two nearest values, half-even rounding will cause it to be rounded to the value that is an even number (or an even multiple of the value being round to.)
Example:
put round(16.5) --> 17
set the halfEvenRounding to TRUE
put round(16.5) --> 16
Related Terms
Related terms in the SenseTalk Dictionary:
ノート
This page is under construction: it has not been reviewed for completeness.