We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9e7117c commit efa3de2Copy full SHA for efa3de2
1 file changed
md/9.md
@@ -17,6 +17,11 @@ In [1]: float('3')
17
Out[1]: 3.0
18
```
19
20
+```python
21
+float('inf') # 正无穷大
22
+float('-inf') # 负无穷大
23
+```
24
+
25
如果不能转化为浮点数,则会报`ValueError`:
26
27
```python
0 commit comments