mirror of
https://github.com/beyondx/Notes.git
synced 2026-02-11 06:15:10 +08:00
add lots file of APUE
This commit is contained in:
20
Zim/Programme/python/python笔记/float.txt
Normal file
20
Zim/Programme/python/python笔记/float.txt
Normal file
@@ -0,0 +1,20 @@
|
||||
Content-Type: text/x-zim-wiki
|
||||
Wiki-Format: zim 0.4
|
||||
Creation-Date: 2012-10-04T13:20:56+08:00
|
||||
|
||||
====== float ======
|
||||
Created Thursday 04 October 2012
|
||||
|
||||
>>> float("0xff")
|
||||
Traceback (most recent call last):
|
||||
File "<stdin>", line 1, in <module>
|
||||
ValueError: invalid literal for float(): 0xff
|
||||
>>>
|
||||
|
||||
>>> __float.fromhex("0xfff")__
|
||||
4095.0
|
||||
>>>
|
||||
|
||||
>>> float("0.111")
|
||||
0.111
|
||||
>>>
|
||||
Reference in New Issue
Block a user