module SiSenior::CoreExt

Public Instance Methods

atto() click to toggle source

Returns BigDecimal result of prefixing with atto (multiples value by 1.0e-18)

# File lib/si_senior/core_ext.rb, line 94
def atto
  big_self * ATTO
end
centi() click to toggle source

Returns BigDecimal result of prefixing with centi (multiples value by 1.0e-2)

# File lib/si_senior/core_ext.rb, line 64
def centi
  big_self * CENTI
end
deca() click to toggle source

Returns BigDecimal result of prefixing with deca (multiplies value by 1.0e+1)

# File lib/si_senior/core_ext.rb, line 54
def deca
  big_self * DECA
end
deci() click to toggle source

Returns BigDecimal result of prefixing with deci (multiples value by 1.0e-1)

# File lib/si_senior/core_ext.rb, line 59
def deci
  big_self * DECI
end
exa() click to toggle source

Returns BigDecimal result of prefixing with exa (multiplies value by 1.0e+18)

# File lib/si_senior/core_ext.rb, line 19
def exa
  big_self * EXA
end
femto() click to toggle source

Returns BigDecimal result of prefixing with femto (multiples value by 1.0e-15)

# File lib/si_senior/core_ext.rb, line 89
def femto
  big_self * FEMTO
end
giga() click to toggle source

Returns BigDecimal result of prefixing with giga (multiplies value by 1.0e+9)

# File lib/si_senior/core_ext.rb, line 34
def giga
  big_self * GIGA
end
hecto() click to toggle source

Returns BigDecimal result of prefixing with hecto (multiplies value by 1.0e+2)

# File lib/si_senior/core_ext.rb, line 49
def hecto
  big_self * HECTO
end
kilo() click to toggle source

Returns BigDecimal result of prefixing with kilo (multiplies value by 1.0e+3)

# File lib/si_senior/core_ext.rb, line 44
def kilo
  big_self * KILO
end
mega() click to toggle source

Returns BigDecimal result of prefixing with mega (multiplies value by 1.0e+6)

# File lib/si_senior/core_ext.rb, line 39
def mega
  big_self * MEGA
end
micro() click to toggle source

Returns BigDecimal result of prefixing with micro (multiples value by 1.0e-6)

# File lib/si_senior/core_ext.rb, line 74
def micro
  big_self * MICRO
end
milli() click to toggle source

Returns BigDecimal result of prefixing with milli (multiples value by 1.0e-3)

# File lib/si_senior/core_ext.rb, line 69
def milli
  big_self * MILLI
end
nano() click to toggle source

Returns BigDecimal result of prefixing with nano (multiples value by 1.0e-9)

# File lib/si_senior/core_ext.rb, line 79
def nano
  big_self * NANO
end
peta() click to toggle source

Returns BigDecimal result of prefixing with peta (multiplies value by 1.0e+15)

# File lib/si_senior/core_ext.rb, line 24
def peta
  big_self * PETA
end
pico() click to toggle source

Returns BigDecimal result of prefixing with pico (multiples value by 1.0e-12)

# File lib/si_senior/core_ext.rb, line 84
def pico
  big_self * PICO
end
tera() click to toggle source

Returns BigDecimal result of prefixing with tera (multiplies value by 1.0e+12)

# File lib/si_senior/core_ext.rb, line 29
def tera
  big_self * TERA
end
to_atto() click to toggle source

Returns BigDecimal result of conversion to atto (divides by 1.0e-18)

# File lib/si_senior/core_ext.rb, line 194
def to_atto
  big_self / ATTO
end
to_centi() click to toggle source

Returns BigDecimal result of conversion to centi (divides by 1.0e-2)

# File lib/si_senior/core_ext.rb, line 164
def to_centi
  big_self / CENTI
end
to_deca() click to toggle source

Returns BigDecimal result of conversion to deca (divides by 1.0e+1)

# File lib/si_senior/core_ext.rb, line 154
def to_deca
  big_self / DECA
end
to_deci() click to toggle source

Returns BigDecimal result of conversion to deci (divides by 1.0e-1)

# File lib/si_senior/core_ext.rb, line 159
def to_deci
  big_self / DECI
end
to_exa() click to toggle source

Returns BigDecimal result of conversion to exa (divides by 1.0e+18)

# File lib/si_senior/core_ext.rb, line 119
def to_exa
  big_self / EXA
end
to_femto() click to toggle source

Returns BigDecimal result of conversion to femto (divides by 1.0e-15)

# File lib/si_senior/core_ext.rb, line 189
def to_femto
  big_self / FEMTO
end
to_giga() click to toggle source

Returns BigDecimal result of conversion to giga (divides by 1.0e+9)

# File lib/si_senior/core_ext.rb, line 134
def to_giga
  big_self / GIGA
end
to_hecto() click to toggle source

Returns BigDecimal result of conversion to hecto (divides by 1.0e+2)

# File lib/si_senior/core_ext.rb, line 149
def to_hecto
  big_self / HECTO
end
to_kilo() click to toggle source

Returns BigDecimal result of conversion to kilo (divides by 1.0e+3)

# File lib/si_senior/core_ext.rb, line 144
def to_kilo
  big_self / KILO
end
to_mega() click to toggle source

Returns BigDecimal result of conversion to mega (divides by 1.0e+6)

# File lib/si_senior/core_ext.rb, line 139
def to_mega
  big_self / MEGA
end
to_micro() click to toggle source

Returns BigDecimal result of conversion to micro (divides by 1.0e-6)

# File lib/si_senior/core_ext.rb, line 174
def to_micro
  big_self / MICRO
end
to_milli() click to toggle source

Returns BigDecimal result of conversion to milli (divides by 1.0e-3)

# File lib/si_senior/core_ext.rb, line 169
def to_milli
  big_self / MILLI
end
to_nano() click to toggle source

Returns BigDecimal result of conversion to nano (divides by 1.0e-9)

# File lib/si_senior/core_ext.rb, line 179
def to_nano
  big_self / NANO
end
to_peta() click to toggle source

Returns BigDecimal result of conversion to peta (divides by 1.0e+15)

# File lib/si_senior/core_ext.rb, line 124
def to_peta
 big_self / PETA
end
to_pico() click to toggle source

Returns BigDecimal result of conversion to pico (divides by 1.0e-12)

# File lib/si_senior/core_ext.rb, line 184
def to_pico
  big_self / PICO
end
to_tera() click to toggle source

Returns BigDecimal result of conversion to tera (divides by 1.0e+12)

# File lib/si_senior/core_ext.rb, line 129
def to_tera
  big_self / TERA
end
to_yocto() click to toggle source

Returns BigDecimal result of conversion to yocto (divides by 1.0e-24)

# File lib/si_senior/core_ext.rb, line 204
def to_yocto
  big_self / YOCTO
end
to_yotta() click to toggle source

Returns BigDecimal result of conversion to yotta (divides by 1.0e+24)

# File lib/si_senior/core_ext.rb, line 109
def to_yotta
  big_self / YOTTA
end
to_zepto() click to toggle source

Returns BigDecimal result of conversion to zepto (divides by 1.0e-21)

# File lib/si_senior/core_ext.rb, line 199
def to_zepto
  big_self / ZEPTO
end
to_zetta() click to toggle source

Returns BigDecimal result of conversion to zetta (divides by 1.0e+21)

# File lib/si_senior/core_ext.rb, line 114
def to_zetta
  big_self / ZETTA
end
yocto() click to toggle source

Returns BigDecimal result of prefixing with yocto (multiples value by 1.0e-24)

# File lib/si_senior/core_ext.rb, line 104
def yocto
  big_self * YOCTO
end
yotta() click to toggle source

Returns BigDecimal result of prefixing with yotta (multiplies value by 1.0e+24)

# File lib/si_senior/core_ext.rb, line 9
def yotta
  big_self * YOTTA
end
zepto() click to toggle source

Returns BigDecimal result of prefixing with zepto (multiples value by 1.0e-21)

# File lib/si_senior/core_ext.rb, line 99
def zepto
  big_self * ZEPTO
end
zetta() click to toggle source

Returns BigDecimal result of prefixing with zetta (multiplies value by 1.0e+21)

# File lib/si_senior/core_ext.rb, line 14
def zetta
  big_self * ZETTA
end

Private Instance Methods

big_self() click to toggle source
# File lib/si_senior/core_ext.rb, line 209
def big_self
  BigDecimal.new(self)
end