module MeasureScaler::QuantityMethods
Public Instance Methods
scale(ord)
click to toggle source
# File lib/measure_scaler/quantity_methods.rb, line 8 def scale(ord) # order of magnitude # TODO: raise if ord%3!=0 to_f/10**ord end
scaling_proposal()
click to toggle source
# File lib/measure_scaler/quantity_methods.rb, line 4 def scaling_proposal (Math.log10(self).floor/3)*3 end