Boost C++ Libraries: Ticket #9690: std::numeric_limits<cpp_dec_float<...>>::digits is same as digits10 https://svn.boost.org/trac10/ticket/9690 <p> cpp_dec_float.hpp line 2955(v1.55.0, 2936 in current develop branch) should be something resolving to <code>log2(Digits10) + x</code>. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/9690 Trac 1.4.3 Caligulaminus <caligulaminus@…> Thu, 20 Feb 2014 18:47:24 GMT summary changed https://svn.boost.org/trac10/ticket/9690#comment:1 https://svn.boost.org/trac10/ticket/9690#comment:1 <ul> <li><strong>summary</strong> <span class="trac-field-old">std::numeric_limits&lt;mpf_dec_float&lt;...&gt;&gt;::digits is same as digits10</span> → <span class="trac-field-new">std::numeric_limits&lt;cpp_dec_float&lt;...&gt;&gt;::digits is same as digits10</span> </li> </ul> <p> cpp_dec_float not mpf_dec_float - sorry. </p> Ticket John Maddock Thu, 20 Feb 2014 19:39:54 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/9690#comment:2 https://svn.boost.org/trac10/ticket/9690#comment:2 <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">invalid</span> </li> </ul> <p> <code>numeric_limits&lt;&gt;::digits</code> does not give binary digits, it gives the number of <code>radix</code> digits, so for a decimal number type like <code>cpp_dec_float</code> <em>digits</em> and <em>digits10</em> really should be the same. </p> <p> Please reopen if I've misunderstood your point. </p> Ticket Caligulaminus <caligulaminus@…> Thu, 20 Feb 2014 21:32:18 GMT <link>https://svn.boost.org/trac10/ticket/9690#comment:3 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/9690#comment:3</guid> <description> <p> My bad. Sorry for wasting your time. </p> </description> <category>Ticket</category> </item> </channel> </rss>