Module: Numeric::Scalar

Included in:
Float, Integer, Rational
Defined in:
lib/arbi/utils/numeric.rb

Constant Summary collapse

MULTIPLIERS =
{
  ?Y => 10 ** 24, ?Z => 10 ** 21, ?E => 10 ** 18,
  ?P => 10 ** 15, ?T => 10 ** 12, ?G => 10 ** 9,
  ?M => 10 ** 6, ?k => 10 ** 3, ?h => 10 ** 2, 'da' => 10,

  ?y => 10 ** -24, ?z => 10 ** -21, ?a => 10 ** -18,
  ?f => 10 ** -15, ?p => 10 ** -12, ?n => 10 ** -9,
  ?u => 10 ** -9, ?m => 10 ** -3, ?c => 10 ** -2, ?d => 10 ** -1
}

Instance Attribute Summary collapse

Instance Attribute Details

#unitObject

Returns the value of attribute unit.



23
24
25
# File 'lib/arbi/utils/numeric.rb', line 23

def unit
  @unit
end