toReadableInformationSize

Converts an Int value to a human-readable information size string (for example, "1.5 GiB", "512 MiB").

Return

A string representing the information size in a human-readable format.

Parameters

maxPlaces

The maximum number of decimal places to include in the output.


Converts a Long value to a human-readable information size string (for example, "1.5 GiB", "512 MiB").

Return

A string representing the information size in a human-readable format.

Parameters

maxPlaces

The maximum number of decimal places to include in the output.