End of Life Ruby 3.0 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →
instance method
Integer#magnitude
magnitude
integer.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.0.5/integer.rb, line 95
def magnitude
Primitive.attr! 'inline'
Primitive.cexpr! 'rb_int_abs(self)'
end
No documentation available
See also
#lcm
#miller_rabin_bases
#integer?
#miller_rabin_test
also in
4.1 · 4.0 · 3.4 · 3.3 · 3.2 · 3.1