struct MemoryConversion::Bits

Defined in:

Constructors

Instance Method Summary

Macro Summary

Constructor Detail

def self.new(value) #

Instance Method Detail

def to_b_s #

Produce a string representing this bit value like "##b".


def to_bit_s #

Produce a string representing this bit value like "## bits".


def to_bits : BigFloat #

Convert this number of bits to the equivalent number of bits


def to_bytes : BigFloat #

Convert this number of bits to the equivalent number of bytes


def to_eb_s #

Produce a string representing this bit value like "##Eb".


def to_exabit_s #

Produce a string representing this bit value like "## Exabits".


def to_exabits : BigFloat #

Convert this number of bits to the equivalent number of Exabits


def to_exabytes : BigFloat #

Convert this number of bits to the equivalent number of Exabytes


def to_gb_s #

Produce a string representing this bit value like "##Gb".


def to_gigabit_s #

Produce a string representing this bit value like "## Gigabits".


def to_gigabits : BigFloat #

Convert this number of bits to the equivalent number of Gigabits


def to_gigabytes : BigFloat #

Convert this number of bits to the equivalent number of Gigabytes


def to_kb_s #

Produce a string representing this bit value like "##kb".


def to_kilobit_s #

Produce a string representing this bit value like "## kilobits".


def to_kilobits : BigFloat #

Convert this number of bits to the equivalent number of kilobits


def to_kilobytes : BigFloat #

Convert this number of bits to the equivalent number of kilobytes


def to_mb_s #

Produce a string representing this bit value like "##Mb".


def to_megabit_s #

Produce a string representing this bit value like "## Megabits".


def to_megabits : BigFloat #

Convert this number of bits to the equivalent number of Megabits


def to_megabytes : BigFloat #

Convert this number of bits to the equivalent number of Megabytes


def to_pb_s #

Produce a string representing this bit value like "##Pb".


def to_petabit_s #

Produce a string representing this bit value like "## Petabits".


def to_petabits : BigFloat #

Convert this number of bits to the equivalent number of Petabits


def to_petabytes : BigFloat #

Convert this number of bits to the equivalent number of Petabytes


def to_s(scale : Symbol) #

def to_storage_bits : BigFloat #

Convert this number of bits to the equivalent number of bits. This uses the metric used by storage manufacturers to inflate their capacity values, by using powers of 10 instead of powers of two.


def to_storage_bytes : BigFloat #

Convert to storage bits and then divide by 8.


def to_storage_exabits : BigFloat #

Convert this number of bits to the equivalent number of Exabits. This uses the metric used by storage manufacturers to inflate their capacity values, by using powers of 10 instead of powers of two.


def to_storage_exabytes : BigFloat #

Convert to storage bits and then divide by 8.


def to_storage_gigabits : BigFloat #

Convert this number of bits to the equivalent number of Gigabits. This uses the metric used by storage manufacturers to inflate their capacity values, by using powers of 10 instead of powers of two.


def to_storage_gigabytes : BigFloat #

Convert to storage bits and then divide by 8.


def to_storage_kilobits : BigFloat #

Convert this number of bits to the equivalent number of kilobits. This uses the metric used by storage manufacturers to inflate their capacity values, by using powers of 10 instead of powers of two.


def to_storage_kilobytes : BigFloat #

Convert to storage bits and then divide by 8.


def to_storage_megabits : BigFloat #

Convert this number of bits to the equivalent number of Megabits. This uses the metric used by storage manufacturers to inflate their capacity values, by using powers of 10 instead of powers of two.


def to_storage_megabytes : BigFloat #

Convert to storage bits and then divide by 8.


def to_storage_petabits : BigFloat #

Convert this number of bits to the equivalent number of Petabits. This uses the metric used by storage manufacturers to inflate their capacity values, by using powers of 10 instead of powers of two.


def to_storage_petabytes : BigFloat #

Convert to storage bits and then divide by 8.


def to_storage_terabits : BigFloat #

Convert this number of bits to the equivalent number of Terabits. This uses the metric used by storage manufacturers to inflate their capacity values, by using powers of 10 instead of powers of two.


def to_storage_terabytes : BigFloat #

Convert to storage bits and then divide by 8.


def to_storage_yottabits : BigFloat #

Convert this number of bits to the equivalent number of Yottabits. This uses the metric used by storage manufacturers to inflate their capacity values, by using powers of 10 instead of powers of two.


def to_storage_yottabytes : BigFloat #

Convert to storage bits and then divide by 8.


def to_storage_zettabits : BigFloat #

Convert this number of bits to the equivalent number of Zettabits. This uses the metric used by storage manufacturers to inflate their capacity values, by using powers of 10 instead of powers of two.


def to_storage_zettabytes : BigFloat #

Convert to storage bits and then divide by 8.


def to_tb_s #

Produce a string representing this bit value like "##Tb".


def to_terabit_s #

Produce a string representing this bit value like "## Terabits".


def to_terabits : BigFloat #

Convert this number of bits to the equivalent number of Terabits


def to_terabytes : BigFloat #

Convert this number of bits to the equivalent number of Terabytes


def to_yb_s #

Produce a string representing this bit value like "##Yb".


def to_yottabit_s #

Produce a string representing this bit value like "## Yottabits".


def to_yottabits : BigFloat #

Convert this number of bits to the equivalent number of Yottabits


def to_yottabytes : BigFloat #

Convert this number of bits to the equivalent number of Yottabytes


def to_zb_s #

Produce a string representing this bit value like "##Zb".


def to_zettabit_s #

Produce a string representing this bit value like "## Zettabits".


def to_zettabits : BigFloat #

Convert this number of bits to the equivalent number of Zettabits


def to_zettabytes : BigFloat #

Convert this number of bits to the equivalent number of Zettabytes


Macro Detail

macro method_missing(call) #