pcalc icon indicating copy to clipboard operation
pcalc copied to clipboard

Support for memory size suffixes [KMGT]

Open michalkucharczyk opened this issue 6 years ago • 0 comments

Support for common memory suffixes was added. It is now possible to use:

  • nKB as a shortcut for n * 1000
  • n[K|k|KiB] for n * 1024 (e.g. 1K = 1024)
  • n[M|m|MiB] for n * 1024 * 1024 (e.g 2M = 2097152)
  • n[G|g|GiB] for n * 1024 * 1024 * 1024
  • n[T|t|TiB] for n * 1024 ^ 4
  • n[P|p|PiB] for n * 1024 ^ 5
  • nEiB for n * 1024 ^ 6

michalkucharczyk avatar Oct 30 '18 18:10 michalkucharczyk