mirror of
https://github.com/beyondx/Notes.git
synced 2026-02-03 18:33:26 +08:00
21 lines
364 B
Plaintext
21 lines
364 B
Plaintext
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
|
|
>>>
|