t8231.nim 81 B

123
  1. import strutils
  2. doAssert formatSize(2462056448, '.', bpIEC, false) == "2.293GiB"