struct MemoryConversion::Bits

Defined in:

bits.cr

Constructors

Instance Method Summary

Macro Summary

Constructor Detail

def self.new(value) #

[View source]

Instance Method Detail

def to_b_s #

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


[View source]
def to_bit_s #

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


[View source]
def to_bits : BigFloat #

Convert this number of bits to the equivalent number of bits


[View source]
def to_bytes : BigFloat #

Convert this number of bits to the equivalent number of bytes


[View source]
def to_eb_s #

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


[View source]
def to_exabit_s #

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


[View source]
def to_exabits : BigFloat #

Convert this number of bits to the equivalent number of Exabits


[View source]
def to_exabytes : BigFloat #

Convert this number of bits to the equivalent number of Exabytes


[View source]
def to_gb_s #

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


[View source]
def to_gigabit_s #

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


[View source]
def to_gigabits : BigFloat #

Convert this number of bits to the equivalent number of Gigabits


[View source]
def to_gigabytes : BigFloat #

Convert this number of bits to the equivalent number of Gigabytes


[View source]
def to_kb_s #

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


[View source]
def to_kilobit_s #

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


[View source]
def to_kilobits : BigFloat #

Convert this number of bits to the equivalent number of kilobits


[View source]
def to_kilobytes : BigFloat #

Convert this number of bits to the equivalent number of kilobytes


[View source]
def to_mb_s #

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


[View source]
def to_megabit_s #

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


[View source]
def to_megabits : BigFloat #

Convert this number of bits to the equivalent number of Megabits


[View source]
def to_megabytes : BigFloat #

Convert this number of bits to the equivalent number of Megabytes


[View source]
def to_pb_s #

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


[View source]
def to_petabit_s #

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


[View source]
def to_petabits : BigFloat #

Convert this number of bits to the equivalent number of Petabits


[View source]
def to_petabytes : BigFloat #

Convert this number of bits to the equivalent number of Petabytes


[View source]
def to_s(scale : Symbol) #

[View source]
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.


[View source]
def to_storage_bytes : BigFloat #

Convert to storage bits and then divide by 8.


[View source]
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.


[View source]
def to_storage_exabytes : BigFloat #

Convert to storage bits and then divide by 8.


[View source]
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.


[View source]
def to_storage_gigabytes : BigFloat #

Convert to storage bits and then divide by 8.


[View source]
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.


[View source]
def to_storage_kilobytes : BigFloat #

Convert to storage bits and then divide by 8.


[View source]
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.


[View source]
def to_storage_megabytes : BigFloat #

Convert to storage bits and then divide by 8.


[View source]
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.


[View source]
def to_storage_petabytes : BigFloat #

Convert to storage bits and then divide by 8.


[View source]
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.


[View source]
def to_storage_terabytes : BigFloat #

Convert to storage bits and then divide by 8.


[View source]
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.


[View source]
def to_storage_yottabytes : BigFloat #

Convert to storage bits and then divide by 8.


[View source]
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.


[View source]
def to_storage_zettabytes : BigFloat #

Convert to storage bits and then divide by 8.


[View source]
def to_tb_s #

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


[View source]
def to_terabit_s #

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


[View source]
def to_terabits : BigFloat #

Convert this number of bits to the equivalent number of Terabits


[View source]
def to_terabytes : BigFloat #

Convert this number of bits to the equivalent number of Terabytes


[View source]
def to_yb_s #

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


[View source]
def to_yottabit_s #

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


[View source]
def to_yottabits : BigFloat #

Convert this number of bits to the equivalent number of Yottabits


[View source]
def to_yottabytes : BigFloat #

Convert this number of bits to the equivalent number of Yottabytes


[View source]
def to_zb_s #

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


[View source]
def to_zettabit_s #

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


[View source]
def to_zettabits : BigFloat #

Convert this number of bits to the equivalent number of Zettabits


[View source]
def to_zettabytes : BigFloat #

Convert this number of bits to the equivalent number of Zettabytes


[View source]

Macro Detail

macro method_missing(call) #

[View source]