#python #sicp
Python includes three native numeric types: integers ( int ), real numbers
( float ), and complex numbers ( complex ).
If you want to change selection, open document below and click on "Move attachment"
2.1 Introduction data type used to represent integers. Integer
literals (sequences of adjacent numerals) evaluate to int values, and
mathematical operators manipulate these values.
>>> 12 + 3000000000000000000000000
3000000000000000000000012
<span>Python includes three native numeric types: integers ( int ), real numbers
( float ), and complex numbers ( complex ).
>>> type(1.5)
>>> type(1+1j)
Floats. The name float comes from the way in which real numbers are
represented in Python and many other programming languages: Summary
status | not read | | reprioritisations | |
---|
last reprioritisation on | | | suggested re-reading day | |
---|
started reading on | | | finished reading on | |
---|
Details