Forums
New posts
Search forums
Members
Current visitors
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Forums
Archive
Archive
Python
A funnily inconsistent behavior of int and float
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
[QUOTE="Mark Dickinson, post: 3533665"] Looks good! The description should probably also mention the optional '0b', '0o' or '0x' (or '0B', '0O', '0X') allowed between the sign and the digits (or before the digits in the case of a missing sign) when base=2, base=8 or base=16. The only base 0 versus base 10 difference I could find was the following: Traceback (most recent call last): File "<stdin>", line 1, in <module> ValueError: invalid literal for int() with base 0: '033' [38720 refs]33 Mark [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
Python
A funnily inconsistent behavior of int and float
Top