export function decimal(n: number): string { const str = n.toString() const xs = str.split('.') if (xs.length == 2) { return `${xs[0]},${xs[1].slice(0, 2).padEnd(2, '0')}` } else { return `${str},00` } }