mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2024-12-23 17:41:41 +00:00
Fixed a small math error
Before: 2 -1 = 0 After: 2 - 1 = 1
This commit is contained in:
parent
8f3c99bb9e
commit
3f32649dd8
@ -140,7 +140,7 @@ SomeRandomClass myObjectInstantiated = new SomeRandomClass();
|
|||||||
|
|
||||||
// Arithmetic
|
// Arithmetic
|
||||||
1 + 1 // 2
|
1 + 1 // 2
|
||||||
2 - 1 // 0
|
2 - 1 // 1
|
||||||
2 * 3 // 6
|
2 * 3 // 6
|
||||||
3 / 2 // 1
|
3 / 2 // 1
|
||||||
3.0 / 2 // 1.5
|
3.0 / 2 // 1.5
|
||||||
|
Loading…
Reference in New Issue
Block a user