mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2024-12-23 17:41:41 +00:00
add modulus operator
This commit is contained in:
parent
5c677e8071
commit
e3c528bb81
@ -39,6 +39,7 @@ You shouldn't either
|
||||
10 * 2 #=> 20
|
||||
35 / 5 #=> 7
|
||||
2**5 #=> 32
|
||||
5 % 3 #=> 2
|
||||
|
||||
# Arithmetic is just syntactic sugar
|
||||
# for calling a method on an object
|
||||
|
Loading…
Reference in New Issue
Block a user