mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2024-11-22 21:52:31 +03: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
|
||||
1 + 1 // 2
|
||||
2 - 1 // 0
|
||||
2 - 1 // 1
|
||||
2 * 3 // 6
|
||||
3 / 2 // 1
|
||||
3.0 / 2 // 1.5
|
||||
|
Loading…
Reference in New Issue
Block a user