tools.fmt.formatSize(): log-based logic