* **`'{<float>:g}'` is `'{<float>:.6}'` with stripped zeros, exponent starting at 7 figures.**
* **When both rounding up and rounding down are possible, the one that returns result with even last digit is chosen. That makes `'{6.5:.0f}'` a `'6'` and `'{7.5:.0f}'` an `'8'`.**
* **When both rounding up and rounding down are possible, the one that returns result with even last digit is chosen. That makes `'{6.5:.0f}'` a `'6'` and `'{7.5:.0f}'` an `'8'`.**
* **This rule only effects numbers that can be represented exactly by a float (`.5`, `.25`, …).**
* **This rule only effects numbers that can be represented exactly by a float (`.5`, `.25`, …).**
<li><strong><codeclass="python hljs"><spanclass="hljs-string">'{<float>:g}'</span></code> is <codeclass="python hljs"><spanclass="hljs-string">'{<float>:.6}'</span></code> with stripped zeros, exponent starting at 7 figures.</strong></li>
<li><strong>When both rounding up and rounding down are possible, the one that returns result with even last digit is chosen. That makes <codeclass="python hljs"><spanclass="hljs-string">'{6.5:.0f}'</span></code> a <codeclass="python hljs"><spanclass="hljs-string">'6'</span></code> and <codeclass="python hljs"><spanclass="hljs-string">'{7.5:.0f}'</span></code> an <codeclass="python hljs"><spanclass="hljs-string">'8'</span></code>.</strong></li>
<li><strong>When both rounding up and rounding down are possible, the one that returns result with even last digit is chosen. That makes <codeclass="python hljs"><spanclass="hljs-string">'{6.5:.0f}'</span></code> a <codeclass="python hljs"><spanclass="hljs-string">'6'</span></code> and <codeclass="python hljs"><spanclass="hljs-string">'{7.5:.0f}'</span></code> an <codeclass="python hljs"><spanclass="hljs-string">'8'</span></code>.</strong></li>
<li><strong>This rule only effects numbers that can be represented exactly by a float (<codeclass="python hljs"><spanclass="hljs-number">.5</span></code>, <codeclass="python hljs"><spanclass="hljs-number">.25</span></code>, …).</strong></li>
<li><strong>This rule only effects numbers that can be represented exactly by a float (<codeclass="python hljs"><spanclass="hljs-number">.5</span></code>, <codeclass="python hljs"><spanclass="hljs-number">.25</span></code>, …).</strong></li>