Current section

Files

Jump to
ex_unit_conversions lib data_storage.ex
Raw

lib/data_storage.ex

# <auto-generated>
# This code was generated by the UnitCodeGenerator tool
#
# Changes to this file will be lost if the code is regenerated
# </auto-generated>
defmodule PutridParrot.Units.Bits do
@moduledoc """
Bits conversion functions
"""
@doc """
Converts the supplied Bits value to Kilobits
"""
def to_kilobits(value), do: value / 1000.0
@doc """
Converts the supplied Bits value to Megabits
"""
def to_megabits(value), do: value / 1.0e+6
@doc """
Converts the supplied Bits value to Gigabits
"""
def to_gigabits(value), do: value / 1.0e+9
@doc """
Converts the supplied Bits value to Terabits
"""
def to_terabits(value), do: value / 1.0e+12
@doc """
Converts the supplied Bits value to Kilobytes
"""
def to_kilobytes(value), do: value / 8000.0
@doc """
Converts the supplied Bits value to Megabytes
"""
def to_megabytes(value), do: value / 8.0e+6
@doc """
Converts the supplied Bits value to Gigabytes
"""
def to_gigabytes(value), do: value / 8.0e+9
@doc """
Converts the supplied Bits value to Terabytes
"""
def to_terabytes(value), do: value / 8.0e+12
@doc """
Converts the supplied Bits value to Kibibits
"""
def to_kibibits(value), do: value / 1024.0
@doc """
Converts the supplied Bits value to Mebibits
"""
def to_mebibits(value), do: value / 1048576.0
end
defmodule PutridParrot.Units.Gigabits do
@moduledoc """
Gigabits conversion functions
"""
@doc """
Converts the supplied Gigabits value to Bits
"""
def to_bits(value), do: value * 1.0e+9
@doc """
Converts the supplied Gigabits value to Kilobits
"""
def to_kilobits(value), do: value * 1.0e+6
@doc """
Converts the supplied Gigabits value to Megabits
"""
def to_megabits(value), do: value * 1000.0
@doc """
Converts the supplied Gigabits value to Terabits
"""
def to_terabits(value), do: value / 1000.0
@doc """
Converts the supplied Gigabits value to Kilobytes
"""
def to_kilobytes(value), do: value * 125000.0
@doc """
Converts the supplied Gigabits value to Megabytes
"""
def to_megabytes(value), do: value * 125.0
@doc """
Converts the supplied Gigabits value to Gigabytes
"""
def to_gigabytes(value), do: value / 8.0
@doc """
Converts the supplied Gigabits value to Terabytes
"""
def to_terabytes(value), do: value / 8000.0
@doc """
Converts the supplied Gigabits value to Kibibits
"""
def to_kibibits(value), do: value * 976562.5
@doc """
Converts the supplied Gigabits value to Mebibits
"""
def to_mebibits(value), do: value * 953.67431640625
end
defmodule PutridParrot.Units.Gigabytes do
@moduledoc """
Gigabytes conversion functions
"""
@doc """
Converts the supplied Gigabytes value to Bits
"""
def to_bits(value), do: value * 8.0e+9
@doc """
Converts the supplied Gigabytes value to Kilobits
"""
def to_kilobits(value), do: value * 8.0e+6
@doc """
Converts the supplied Gigabytes value to Megabits
"""
def to_megabits(value), do: value * 8000.0
@doc """
Converts the supplied Gigabytes value to Gigabits
"""
def to_gigabits(value), do: value * 8.0
@doc """
Converts the supplied Gigabytes value to Terabits
"""
def to_terabits(value), do: value / 125.0
@doc """
Converts the supplied Gigabytes value to Kilobytes
"""
def to_kilobytes(value), do: value * 1.0e+6
@doc """
Converts the supplied Gigabytes value to Megabytes
"""
def to_megabytes(value), do: value * 1000.0
@doc """
Converts the supplied Gigabytes value to Terabytes
"""
def to_terabytes(value), do: value / 1000.0
@doc """
Converts the supplied Gigabytes value to Kibibits
"""
def to_kibibits(value), do: value * 7812500.0
@doc """
Converts the supplied Gigabytes value to Mebibits
"""
def to_mebibits(value), do: value * 7629.39
end
defmodule PutridParrot.Units.Kibibits do
@moduledoc """
Kibibits conversion functions
"""
@doc """
Converts the supplied Kibibits value to Bits
"""
def to_bits(value), do: value * 1024.0
@doc """
Converts the supplied Kibibits value to Kilobits
"""
def to_kilobits(value), do: value * 1.024
@doc """
Converts the supplied Kibibits value to Megabits
"""
def to_megabits(value), do: value / 976.563
@doc """
Converts the supplied Kibibits value to Gigabits
"""
def to_gigabits(value), do: value / 976562.5
@doc """
Converts the supplied Kibibits value to Terabits
"""
def to_terabits(value), do: value / 976562500.0
@doc """
Converts the supplied Kibibits value to Kilobytes
"""
def to_kilobytes(value), do: value / 7.8125
@doc """
Converts the supplied Kibibits value to Megabytes
"""
def to_megabytes(value), do: value / 7812.5
@doc """
Converts the supplied Kibibits value to Gigabytes
"""
def to_gigabytes(value), do: value / 7812500.0
@doc """
Converts the supplied Kibibits value to Terabytes
"""
def to_terabytes(value), do: value / 7812500000.0
@doc """
Converts the supplied Kibibits value to Mebibits
"""
def to_mebibits(value), do: value / 1024.0
end
defmodule PutridParrot.Units.Kilobits do
@moduledoc """
Kilobits conversion functions
"""
@doc """
Converts the supplied Kilobits value to Bits
"""
def to_bits(value), do: value * 1000.0
@doc """
Converts the supplied Kilobits value to Megabits
"""
def to_megabits(value), do: value / 1000.0
@doc """
Converts the supplied Kilobits value to Gigabits
"""
def to_gigabits(value), do: value / 1.0e+6
@doc """
Converts the supplied Kilobits value to Terabits
"""
def to_terabits(value), do: value / 1.0e+9
@doc """
Converts the supplied Kilobits value to Kilobytes
"""
def to_kilobytes(value), do: value / 8.0
@doc """
Converts the supplied Kilobits value to Megabytes
"""
def to_megabytes(value), do: value / 8000.0
@doc """
Converts the supplied Kilobits value to Gigabytes
"""
def to_gigabytes(value), do: value / 8.0e+6
@doc """
Converts the supplied Kilobits value to Terabytes
"""
def to_terabytes(value), do: value / 8.0e+9
@doc """
Converts the supplied Kilobits value to Kibibits
"""
def to_kibibits(value), do: value / 1.024
@doc """
Converts the supplied Kilobits value to Mebibits
"""
def to_mebibits(value), do: value / 1048.58
end
defmodule PutridParrot.Units.Kilobytes do
@moduledoc """
Kilobytes conversion functions
"""
@doc """
Converts the supplied Kilobytes value to Bits
"""
def to_bits(value), do: value * 8000.0
@doc """
Converts the supplied Kilobytes value to Kilobits
"""
def to_kilobits(value), do: value * 8.0
@doc """
Converts the supplied Kilobytes value to Megabits
"""
def to_megabits(value), do: value / 125.0
@doc """
Converts the supplied Kilobytes value to Gigabits
"""
def to_gigabits(value), do: value / 125000.0
@doc """
Converts the supplied Kilobytes value to Terabits
"""
def to_terabits(value), do: value / 1.25e+8
@doc """
Converts the supplied Kilobytes value to Megabytes
"""
def to_megabytes(value), do: value / 1000.0
@doc """
Converts the supplied Kilobytes value to Gigabytes
"""
def to_gigabytes(value), do: value / 1.0e+6
@doc """
Converts the supplied Kilobytes value to Terabytes
"""
def to_terabytes(value), do: value / 1.0e+9
@doc """
Converts the supplied Kilobytes value to Kibibits
"""
def to_kibibits(value), do: value * 7.8125
@doc """
Converts the supplied Kilobytes value to Mebibits
"""
def to_mebibits(value), do: value * 0.00762939
end
defmodule PutridParrot.Units.Mebibits do
@moduledoc """
Mebibits conversion functions
"""
@doc """
Converts the supplied Mebibits value to Bits
"""
def to_bits(value), do: value * 1048576.0
@doc """
Converts the supplied Mebibits value to Kilobits
"""
def to_kilobits(value), do: value * 1048.58
@doc """
Converts the supplied Mebibits value to Megabits
"""
def to_megabits(value), do: value * 1.04858
@doc """
Converts the supplied Mebibits value to Gigabits
"""
def to_gigabits(value), do: value / 953.67431640625
@doc """
Converts the supplied Mebibits value to Terabits
"""
def to_terabits(value), do: value / 953674.0
@doc """
Converts the supplied Mebibits value to Kilobytes
"""
def to_kilobytes(value), do: value / 0.00762939
@doc """
Converts the supplied Mebibits value to Megabytes
"""
def to_megabytes(value), do: value / 7.62939
@doc """
Converts the supplied Mebibits value to Gigabytes
"""
def to_gigabytes(value), do: value / 7629.39
@doc """
Converts the supplied Mebibits value to Terabytes
"""
def to_terabytes(value), do: value * 0.000000131072
@doc """
Converts the supplied Mebibits value to Kibibits
"""
def to_kibibits(value), do: value * 1024.0
end
defmodule PutridParrot.Units.Megabits do
@moduledoc """
Megabits conversion functions
"""
@doc """
Converts the supplied Megabits value to Bits
"""
def to_bits(value), do: value * 1.0e+6
@doc """
Converts the supplied Megabits value to Kilobits
"""
def to_kilobits(value), do: value * 1000.0
@doc """
Converts the supplied Megabits value to Gigabits
"""
def to_gigabits(value), do: value / 1000.0
@doc """
Converts the supplied Megabits value to Terabits
"""
def to_terabits(value), do: value / 1.0e+6
@doc """
Converts the supplied Megabits value to Kilobytes
"""
def to_kilobytes(value), do: value * 125.0
@doc """
Converts the supplied Megabits value to Megabytes
"""
def to_megabytes(value), do: value / 8.0
@doc """
Converts the supplied Megabits value to Gigabytes
"""
def to_gigabytes(value), do: value / 8000.0
@doc """
Converts the supplied Megabits value to Terabytes
"""
def to_terabytes(value), do: value / 8.0e+6
@doc """
Converts the supplied Megabits value to Kibibits
"""
def to_kibibits(value), do: value * 976.563
@doc """
Converts the supplied Megabits value to Mebibits
"""
def to_mebibits(value), do: value / 1.04858
end
defmodule PutridParrot.Units.Megabytes do
@moduledoc """
Megabytes conversion functions
"""
@doc """
Converts the supplied Megabytes value to Bits
"""
def to_bits(value), do: value * 8.0e+6
@doc """
Converts the supplied Megabytes value to Kilobits
"""
def to_kilobits(value), do: value * 8000.0
@doc """
Converts the supplied Megabytes value to Megabits
"""
def to_megabits(value), do: value * 8.0
@doc """
Converts the supplied Megabytes value to Gigabits
"""
def to_gigabits(value), do: value / 125.0
@doc """
Converts the supplied Megabytes value to Terabits
"""
def to_terabits(value), do: value / 125000.0
@doc """
Converts the supplied Megabytes value to Kilobytes
"""
def to_kilobytes(value), do: value * 1000.0
@doc """
Converts the supplied Megabytes value to Gigabytes
"""
def to_gigabytes(value), do: value / 1000.0
@doc """
Converts the supplied Megabytes value to Terabytes
"""
def to_terabytes(value), do: value / 1.0e+6
@doc """
Converts the supplied Megabytes value to Kibibits
"""
def to_kibibits(value), do: value * 7812.5
@doc """
Converts the supplied Megabytes value to Mebibits
"""
def to_mebibits(value), do: value * 7.62939
end
defmodule PutridParrot.Units.Terabits do
@moduledoc """
Terabits conversion functions
"""
@doc """
Converts the supplied Terabits value to Bits
"""
def to_bits(value), do: value * 1.0e+12
@doc """
Converts the supplied Terabits value to Kilobits
"""
def to_kilobits(value), do: value * 1.0e+9
@doc """
Converts the supplied Terabits value to Megabits
"""
def to_megabits(value), do: value * 1.0e+6
@doc """
Converts the supplied Terabits value to Gigabits
"""
def to_gigabits(value), do: value * 1000.0
@doc """
Converts the supplied Terabits value to Kilobytes
"""
def to_kilobytes(value), do: value * 1.25e+8
@doc """
Converts the supplied Terabits value to Megabytes
"""
def to_megabytes(value), do: value * 125000.0
@doc """
Converts the supplied Terabits value to Gigabytes
"""
def to_gigabytes(value), do: value * 125.0
@doc """
Converts the supplied Terabits value to Terabytes
"""
def to_terabytes(value), do: value / 8.0
@doc """
Converts the supplied Terabits value to Kibibits
"""
def to_kibibits(value), do: value * 976562500.0
@doc """
Converts the supplied Terabits value to Mebibits
"""
def to_mebibits(value), do: value * 953674.0
end
defmodule PutridParrot.Units.Terabytes do
@moduledoc """
Terabytes conversion functions
"""
@doc """
Converts the supplied Terabytes value to Bits
"""
def to_bits(value), do: value * 8.0e+12
@doc """
Converts the supplied Terabytes value to Kilobits
"""
def to_kilobits(value), do: value * 8.0e+9
@doc """
Converts the supplied Terabytes value to Megabits
"""
def to_megabits(value), do: value * 8.0e+6
@doc """
Converts the supplied Terabytes value to Gigabits
"""
def to_gigabits(value), do: value * 8000.0
@doc """
Converts the supplied Terabytes value to Terabits
"""
def to_terabits(value), do: value * 8.0
@doc """
Converts the supplied Terabytes value to Kilobytes
"""
def to_kilobytes(value), do: value * 1.0e+9
@doc """
Converts the supplied Terabytes value to Megabytes
"""
def to_megabytes(value), do: value * 1.0e+6
@doc """
Converts the supplied Terabytes value to Gigabytes
"""
def to_gigabytes(value), do: value * 1000.0
@doc """
Converts the supplied Terabytes value to Kibibits
"""
def to_kibibits(value), do: value * 7812500000.0
@doc """
Converts the supplied Terabytes value to Mebibits
"""
def to_mebibits(value), do: value / 0.000000131072
end