Capacity
Represents the amount of digital data something uses.
Capacity can represent ±8 exbibytes with byte-level accuracy.
To construct a Capacity, use the extension functions kibibytes, kilobytes, mebibytes, megabytes, and so on.
To get the value of this Capacity expressed in a particular CapacityUnit, use the functions toLong, toDouble, and so on.
Functions
Link copied to clipboard
Converts this Capacity to the given CapacityUnit, returning a Double representing the precise value.
Link copied to clipboard
Converts this Capacity to the given CapacityUnit, rounding to the nearest whole number.