Class: Float
Overview
automatic type cast for JavaScript
Instance Method Summary collapse
Instance Method Details
#logical_shift_right(positions = 1, bit_size = 32) ⇒ Object Also known as: lsr
47 48 49 |
# File 'lib/amber/fukubukuro.rb', line 47 def logical_shift_right positions = 1, bit_size = 32 (to_i % 2 ** bit_size).logical_shift_right positions, bit_size end |
#to_str ⇒ Object
55 56 57 |
# File 'lib/amber/fukubukuro.rb', line 55 def to_str to_s.chomp('.0') end |