<?xml version="1.0" encoding="windows-1252"?>
<node id="109602" title="Re: Re: Re: Using (s)printf()" created="2001-09-01 03:29:24" updated="2005-07-19 22:15:59">
<type id="11">
note</type>
<author id="961">
Anonymous Monk</author>
<data>
<field name="doctext">
Actually, this isn't quite the whole story.  Most everyone follows the IEEE convention of "round towards nearest or even."&lt;br&gt;
Examples (rounding all of these to the one's place):&lt;p&gt;

2.51 becomes 3 (this is the 'nearest' rule, which always comes first)&lt;br&gt;
2.49 becomes 2 (again, 'nearest')&lt;p&gt;

However, what happens if you have 2.50 ?  Which way do you round it... 'tis no nearer to 2 than to 3.  The IEEE standard says if there is a tie, round to the even number.&lt;p&gt;

2.50 becomes 2&lt;br&gt;
3.50 becomes 4&lt;p&gt;

You have to pick up or down... this method is consistent and thus tends to make your errors (statistically) smaller.</field>
<field name="root_node">
20519</field>
<field name="parent_node">
109363</field>
<field name="reputation">
14</field>
</data>
</node>
