Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
lucb1e
· 7y ago · 0 comments
How odd to notice that my brain really messed that number type up. I could swear Python has a type called (capitalized) Number and that this handles arbitrarily large numbers as well as decimals. Seems like that 'memory' is completely fictional.
Comments
[–]
vaccarium
7y ago
Python does actually have an abstract type for numbers, and it is called Number:
https://docs.python.org/3/library/numbers.html
.