Call abs method on negative integer : abs « Number « Ruby






Call abs method on negative integer


-40.abs # => 40

 

Related examples in the same category

1.Call abs method on positive integer