This will sound like I don't know basic programming, but in Ruby, is there is a ...

@pixmo@mastodon.ie

This will sound like I don't know basic programming, but in Ruby, is there is a better way of turning a number negative than;

number.abs * -1

I almost feel like abs needs a little negative friend.

#Ruby #RubyLang