Module workflow_utils::format
source · Functions§
- Display units dynamically formatted based on the size of the value.
- Display GB or GiB if
shortis false, otherwise ifshortis true and the value is greater than 1TB or 1TiB, display units usingas_data_size(). - Display KB or KiB if
shortis false, otherwise ifshortis true and the value is greater than 1MB or 1MiB, display units usingas_data_size(). - Display MB or MiB if
shortis false, otherwise ifshortis true and the value is greater than 1GB or 1GiB, display units usingas_data_size(). - Format supplied value as a float with 2 decimal places.