2014-01-05 20:05:08 +00:00
|
|
|
import Int.
|
|
|
|
eval 8 mod 3
|
|
|
|
eval 8 div 4
|
|
|
|
eval 7 div 3
|
|
|
|
eval 7 mod 3
|
2014-01-05 19:03:35 +00:00
|
|
|
print -8 mod 3
|
2014-01-09 16:33:52 +00:00
|
|
|
set_option lean::pp::notation false
|
2014-01-05 19:03:35 +00:00
|
|
|
print -8 mod 3
|
2014-01-05 20:05:08 +00:00
|
|
|
eval -8 mod 3
|
|
|
|
eval (-8 div 3)*3 + (-8 mod 3)
|