<?xml version="1.0" encoding="windows-1252"?>
<node id="991473" title="Re: Fucking sprintf rounding - how does it work?" created="2012-09-03 12:38:27" updated="2012-09-03 12:38:27">
<type id="11">
note</type>
<author id="626393">
daxim</author>
<data>
<field name="doctext">
[http://enwp.org/Rounding#Round_half_to_even|round towards even], and for me, 0.15 =&gt; 0.2.
&lt;p&gt;
In the cases where your test program deviates from the expected value, it's just the usual floating point inaccuracy bullshit. I guess sprintf %f operates on NV/numbers.</field>
<field name="root_node">
991469</field>
<field name="parent_node">
991469</field>
</data>
</node>
