Browse Source

Numbers

pull/41/head
Jure Šorn 5 years ago
parent
commit
2a649f1539
2 changed files with 2 additions and 2 deletions
  1. 2
      README.md
  2. 2
      index.html

2
README.md

@ -482,7 +482,7 @@ Numbers
```
* **`'int(<str>)'` and `'float(<str>)'` raise ValueError on malformed strings.**
### Special Types
### Importable Types
```python
<Fraction> = fractions.Fraction(numerator=0, denominator=1)
<Decimal> = decimal.Decimal(<int/float/str>)

2
index.html

@ -562,7 +562,7 @@ to_exclusive = &lt;range&gt;.stop
<ul>
<li><strong><code class="python hljs"><span class="hljs-string">'int(&lt;str&gt;)'</span></code> and <code class="python hljs"><span class="hljs-string">'float(&lt;str&gt;)'</span></code> raise ValueError on malformed strings.</strong></li>
</ul>
<div><h3 id="specialtypes">Special Types</h3><pre><code class="python language-python hljs">&lt;Fraction&gt; = fractions.Fraction(numerator=<span class="hljs-number">0</span>, denominator=<span class="hljs-number">1</span>)
<div><h3 id="importabletypes">Importable Types</h3><pre><code class="python language-python hljs">&lt;Fraction&gt; = fractions.Fraction(numerator=<span class="hljs-number">0</span>, denominator=<span class="hljs-number">1</span>)
&lt;Decimal&gt; = decimal.Decimal(&lt;int/float/str&gt;)
</code></pre></div>

Loading…
Cancel
Save