- abs
- round
- even
- gcd
Methods of Int32
examples/intro/int32_methods.cr
answer = -42 p! answer.abs # 42 p! answer.even? # true p! answer.round # -42 puts 42.gcd(35) # 7 ( Greatest common divisor )
answer = -42 p! answer.abs # 42 p! answer.even? # true p! answer.round # -42 puts 42.gcd(35) # 7 ( Greatest common divisor )