FunFunc v0.2.0 FunFunc.Unit

Functions for units.

kilo, mega, giga, tera, peta, exa, milli, milli, micro, nano, pico, femto, atto are supported.

Link to this section Summary

Functions

1 atto is 1.0e-18

1 exa is 1000000000000000000

1 exabyte is 1152921504606846976

1 femto is 1.0e-15

1 giga is 1000000000

1 gigabyte is 1073741824

1 kilo is 1000

1 kilobyte is 1024

1 mega is 1000000

1 megabyte is 1048576

1 micro is 1.0e-6

1 milli is 0.001

1 nano is 1.0e-9

1 peta is 1000000000000000

1 petabyte is 1125899906842624

1 pico is 1.0e-12

1 tera is 1000000000000

1 terabyte is 1099511627776

Link to this section Functions

Link to this function atto()
atto() :: number()

1 atto is 1.0e-18.

Examples

iex> FunFunc.Unit.atto()
1.0e-18
Link to this function atto(x)
atto(number()) :: number()

See atto/0.

Examples

iex> FunFunc.Unit.atto(3)
3.0000000000000002e-18
Link to this function exa()
exa() :: number()

1 exa is 1000000000000000000.

Examples

iex> FunFunc.Unit.exa()
1000000000000000000
Link to this function exa(x)
exa(number()) :: number()

See exa/0.

Examples

iex> FunFunc.Unit.exa(3)
3000000000000000000
Link to this function exabyte()
exabyte() :: number()

1 exabyte is 1152921504606846976.

Examples

iex> FunFunc.Unit.exabyte()
1152921504606846976
Link to this function exabyte(x)
exabyte(number()) :: number()

See exabyte/0.

Examples

iex> FunFunc.Unit.exabyte(3)
3458764513820540928
Link to this function exabytes(x)
exabytes(number()) :: number()

Alias for exabyte/1.

Examples

iex> FunFunc.Unit.exabytes(3)
3458764513820540928
Link to this function femto()
femto() :: number()

1 femto is 1.0e-15.

Examples

iex> FunFunc.Unit.femto()
1.0e-15
Link to this function femto(x)
femto(number()) :: number()

See femto/0.

Examples

iex> FunFunc.Unit.femto(3)
3.0000000000000002e-15
Link to this function giga()
giga() :: number()

1 giga is 1000000000.

Examples

iex> FunFunc.Unit.giga()
1000000000
Link to this function giga(x)
giga(number()) :: number()

See giga/0.

Examples

iex> FunFunc.Unit.giga(3)
3000000000
Link to this function gigabyte()
gigabyte() :: number()

1 gigabyte is 1073741824.

Examples

iex> FunFunc.Unit.gigabyte()
1073741824
Link to this function gigabyte(x)
gigabyte(number()) :: number()

See gigabyte/0.

Examples

iex> FunFunc.Unit.gigabyte(3)
3221225472
Link to this function gigabytes(x)
gigabytes(number()) :: number()

Alias for gigabyte/1.

Examples

iex> FunFunc.Unit.gigabytes(3)
3221225472
Link to this function kilo()
kilo() :: number()

1 kilo is 1000.

Examples

iex> FunFunc.Unit.kilo()
1000
Link to this function kilo(x)
kilo(number()) :: number()

See kilo/0.

Examples

iex> FunFunc.Unit.kilo(3)
3000
Link to this function kilobyte()
kilobyte() :: number()

1 kilobyte is 1024.

Examples

iex> FunFunc.Unit.kilobyte()
1024
Link to this function kilobyte(x)
kilobyte(number()) :: number()

See kilobyte/0.

Examples

iex> FunFunc.Unit.kilobyte(3)
3072
Link to this function kilobytes(x)
kilobytes(number()) :: number()

Alias for kilobyte/1.

Examples

iex> FunFunc.Unit.kilobytes(3)
3072
Link to this function mega()
mega() :: number()

1 mega is 1000000.

Examples

iex> FunFunc.Unit.mega()
1000000
Link to this function mega(x)
mega(number()) :: number()

See mega/0.

Examples

iex> FunFunc.Unit.mega(3)
3000000
Link to this function megabyte()
megabyte() :: number()

1 megabyte is 1048576.

Examples

iex> FunFunc.Unit.megabyte()
1048576
Link to this function megabyte(x)
megabyte(number()) :: number()

See megabyte/0.

Examples

iex> FunFunc.Unit.megabyte(3)
3145728
Link to this function megabytes(x)
megabytes(number()) :: number()

Alias for megabyte/1.

Examples

iex> FunFunc.Unit.megabytes(3)
3145728
Link to this function micro()
micro() :: number()

1 micro is 1.0e-6.

Examples

iex> FunFunc.Unit.micro()
1.0e-6
Link to this function micro(x)
micro(number()) :: number()

See micro/0.

Examples

iex> FunFunc.Unit.micro(3)
3.0e-6
Link to this function milli()
milli() :: number()

1 milli is 0.001.

Examples

iex> FunFunc.Unit.milli()
0.001
Link to this function milli(x)
milli(number()) :: number()

See milli/0.

Examples

iex> FunFunc.Unit.milli(3)
0.003
Link to this function nano()
nano() :: number()

1 nano is 1.0e-9.

Examples

iex> FunFunc.Unit.nano()
1.0e-9
Link to this function nano(x)
nano(number()) :: number()

See nano/0.

Examples

iex> FunFunc.Unit.nano(3)
3.0000000000000004e-9
Link to this function peta()
peta() :: number()

1 peta is 1000000000000000.

Examples

iex> FunFunc.Unit.peta()
1000000000000000
Link to this function peta(x)
peta(number()) :: number()

See peta/0.

Examples

iex> FunFunc.Unit.peta(3)
3000000000000000
Link to this function petabyte()
petabyte() :: number()

1 petabyte is 1125899906842624.

Examples

iex> FunFunc.Unit.petabyte()
1125899906842624
Link to this function petabyte(x)
petabyte(number()) :: number()

See petabyte/0.

Examples

iex> FunFunc.Unit.petabyte(3)
3377699720527872
Link to this function petabytes(x)
petabytes(number()) :: number()

Alias for petabyte/1.

Examples

iex> FunFunc.Unit.petabytes(3)
3377699720527872
Link to this function pico()
pico() :: number()

1 pico is 1.0e-12.

Examples

iex> FunFunc.Unit.pico()
1.0e-12
Link to this function pico(x)
pico(number()) :: number()

See pico/0.

Examples

iex> FunFunc.Unit.pico(3)
3.0e-12
Link to this function tera()
tera() :: number()

1 tera is 1000000000000.

Examples

iex> FunFunc.Unit.tera()
1000000000000
Link to this function tera(x)
tera(number()) :: number()

See tera/0.

Examples

iex> FunFunc.Unit.tera(3)
3000000000000
Link to this function terabyte()
terabyte() :: number()

1 terabyte is 1099511627776.

Examples

iex> FunFunc.Unit.terabyte()
1099511627776
Link to this function terabyte(x)
terabyte(number()) :: number()

See terabyte/0.

Examples

iex> FunFunc.Unit.terabyte(3)
3298534883328
Link to this function terabytes(x)
terabytes(number()) :: number()

Alias for terabyte/1.

Examples

iex> FunFunc.Unit.terabytes(3)
3298534883328