Module workflow_utils::format

source ·

Functions§

  • Display units dynamically formatted based on the size of the value.
  • Display GB or GiB if short is false, otherwise if short is true and the value is greater than 1TB or 1TiB, display units using as_data_size().
  • Display KB or KiB if short is false, otherwise if short is true and the value is greater than 1MB or 1MiB, display units using as_data_size().
  • Display MB or MiB if short is false, otherwise if short is true and the value is greater than 1GB or 1GiB, display units using as_data_size().
  • Format supplied value as a float with 2 decimal places.