Professional Documents
Culture Documents
Origami Reflections: Numbers
Origami Reflections: Numbers
Origami reflections
One wrong step
Must be specific/precise
Python
Numbers
int Stored exactly, no fractions
2.389 x 10^4 scientific notation tracks a fair number of significant digits, same with float not as
precise; therefore, computer scientists lean towards using integers over float. More precise.
Math
Lets say we need to figure out the volume of a box.
>>> Width = 10
>>> Height = 20
>>> Depth = 5
1000
Text
str String of characters
>>> ord(Q)
81
There is a table in the computer that recognizes each character as a number.
97
Comparison
< checks for is it less than? or > checks for is it more than?
>>> width
45