Login
You're viewing the assemblag.es public feed.
  • Oct 21, 2026, 10:59 AM

    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

    💬 0🔄 0⭐ 0