Skip to content

Commit b87a82b

Browse files
committed
Format
1 parent 9785ab9 commit b87a82b

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -486,8 +486,8 @@ Format
486486
### Ints
487487
```python
488488
{90:c} # 'Z'. Unicode character with value 90.
489-
{90:b} # '1011010'. Number 90 in binary.
490-
{90:X} # '5A'. Number 90 in uppercase hexadecimal.
489+
{90:b} # '1011010'. Binary representation of the int.
490+
{90:X} # '5A'. Hexadecimal with upper-case letters.
491491
```
492492

493493

index.html

+4-4
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@
5656

5757
<body>
5858
<header>
59-
<aside>March 27, 2025</aside>
59+
<aside>March 29, 2025</aside>
6060
<a href="https://gto76.github.io" rel="author">Jure Šorn</a>
6161
</header>
6262

@@ -451,8 +451,8 @@
451451
<li><strong>This rule only effects numbers that can be represented exactly by a float (<code class="python hljs"><span class="hljs-number">.5</span></code>, <code class="python hljs"><span class="hljs-number">.25</span></code>, …).</strong></li>
452452
</ul>
453453
<div><h3 id="ints">Ints</h3><pre><code class="python language-python hljs">{<span class="hljs-number">90</span>:c} <span class="hljs-comment"># 'Z'. Unicode character with value 90.</span>
454-
{<span class="hljs-number">90</span>:b} <span class="hljs-comment"># '1011010'. Number 90 in binary.</span>
455-
{<span class="hljs-number">90</span>:X} <span class="hljs-comment"># '5A'. Number 90 in uppercase hexadecimal.</span>
454+
{<span class="hljs-number">90</span>:b} <span class="hljs-comment"># '1011010'. Binary representation of the int.</span>
455+
{<span class="hljs-number">90</span>:X} <span class="hljs-comment"># '5A'. Hexadecimal with upper-case letters.</span>
456456
</code></pre></div>
457457

458458
<div><h2 id="numbers"><a href="#numbers" name="numbers">#</a>Numbers</h2><pre><code class="python language-python hljs">&lt;int&gt; = int(&lt;float/str/bool&gt;) <span class="hljs-comment"># Or: math.trunc(&lt;float&gt;)</span>
@@ -2944,7 +2944,7 @@ <h3 id="format-2">Format</h3><div><h4 id="forstandardtypesizesandmanualalignment
29442944

29452945

29462946
<footer>
2947-
<aside>March 27, 2025</aside>
2947+
<aside>March 29, 2025</aside>
29482948
<a href="https://gto76.github.io" rel="author">Jure Šorn</a>
29492949
</footer>
29502950

0 commit comments

Comments
 (0)