sizeof_fmt

Contents

sizeof_fmt#

mrinufft.operators.interfaces.utils.utils.sizeof_fmt(num, suffix='B')[source]#

Return a number as a XiB format.

Parameters:
  • num (int) – The number to format

  • suffix (str, default "B") – The unit suffix