Return numbers in human readable format according to the Metric (SI) Prefixes
// convert an integer to a string with a metric (IS) prefix + suffix
function convertToMetric(number) {
const x = ['', 'k', 'M', 'B', 'T', 'P', 'E']
const tier = Math.log10(number) / 3 | 0;
if (tier == 0) return number;
const prefix = x[tier];