Numbers
Numbers
1. Introduction
2. Recap
3. Math Operators
Work as expected.
Numbers 1
Floating point arithmetic might introduce minor errors.
1. "Hello, World!"
2. 12345
3. 98.76
4. True
5. [1, 2, 3, 4, 5]
1. 7+2.57+2.5
2. 8/28/2
3. 3×4.03×4.0
4. 10−4.110−4.1
Numbers 2
1. Multiply 0.1 by 3. What is the result? Is this what you expected?
1. Given the list: [1,2,3,4,5], add a floating point number 6.7 to it.
[1,2,3,4,5]
1. 5.0 == 5
2. "5" == 5
3. 10.1 + 2.9 == 13
4. 3 * 0.1 == 0.3
Numbers 3