<head>
<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
<title>Factorials</title>
-<link rel="stylesheet" href="../../../../../../../../doc/src/boostbook.css" type="text/css">
+<link rel="stylesheet" href="../../../../multiprecision.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.79.1">
<link rel="home" href="../../../../index.html" title="Chapter 1. Boost.Multiprecision">
<link rel="up" href="../egs.html" title="Examples">
<span class="comment">//</span>
<span class="comment">// Print all the factorials that will fit inside a 128-bit integer.</span>
<span class="comment">//</span>
- <span class="comment">// Begin by building a big table of factorials, once we know just how </span>
+ <span class="comment">// Begin by building a big table of factorials, once we know just how</span>
<span class="comment">// large the largest is, we'll be able to "pretty format" the results.</span>
<span class="comment">//</span>
<span class="comment">// Calculate the largest number that will fit inside 128 bits, we could</span>
<span class="comment">// also have used numeric_limits<int128_t>::max() for this value:</span>
<span class="identifier">cpp_int</span> <span class="identifier">limit</span> <span class="special">=</span> <span class="special">(</span><span class="identifier">cpp_int</span><span class="special">(</span><span class="number">1</span><span class="special">)</span> <span class="special"><<</span> <span class="number">128</span><span class="special">)</span> <span class="special">-</span> <span class="number">1</span><span class="special">;</span>
- <span class="comment">// </span>
+ <span class="comment">//</span>
<span class="comment">// Our table of values:</span>
<span class="identifier">std</span><span class="special">::</span><span class="identifier">vector</span><span class="special"><</span><span class="identifier">cpp_int</span><span class="special">></span> <span class="identifier">results</span><span class="special">;</span>
<span class="comment">//</span>