Class: Float

Inherits:
Object
  • Object
show all
Defined in:
lib/bigbench/float_extensions.rb

Overview

Adds the to_milliseconds method to any float value

Instance Method Summary collapse

Instance Method Details

#to_millisecondsObject



3
4
5
# File 'lib/bigbench/float_extensions.rb', line 3

def to_milliseconds
  (1000 * self).to_i
end