Boost C++ Libraries: Ticket #5676: more accurate tests for float types in lexical_cast https://svn.boost.org/trac10/ticket/5676 <p> Use BOOST_CHECK_CLOSE_FRACTION(a, b, std::numeric_limits&lt;T&gt;::epsilon() ) instead of BOOST_CHECK_CLOSE(a, b, std::numeric_limits&lt;T&gt;::epsilon()*100 )<br /> </p> <p> std::numeric_limits&lt;T&gt;::epsilon()*100/100 not always equal to std::numeric_limits&lt;T&gt;::epsilon() <a class="ext-link" href="http://www.parashift.com/c++-faq-lite/newbie.html#faq-29.17"><span class="icon">​</span>http://www.parashift.com/c++-faq-lite/newbie.html#faq-29.17</a> </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/5676 Trac 1.4.3 Antony Polukhin Thu, 07 Jul 2011 16:04:35 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/5676#comment:1 https://svn.boost.org/trac10/ticket/5676#comment:1 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">fixed</span> </li> </ul> <p> (In <a class="changeset" href="https://svn.boost.org/trac10/changeset/72955" title="Fixes #5676. Tests for float types are now more accurate">[72955]</a>) Fixes <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/5676" title="#5676: Bugs: more accurate tests for float types in lexical_cast (closed: fixed)">#5676</a>. Tests for float types are now more accurate </p> Ticket