Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 | 5x 9x 9x 8x 9x | export const formatToPrice = (value: number) => {
let res = Math.round(value * 100).toString();
if (res !== '0') {
res = `${res.slice(0, -2) || '0'},${res.slice(-2).padStart(2, '0')}`;
}
return `${res} €`;
};
|