Fichtelgard

The NicerPricer

export function nicerPricer(price: string, pure: boolean = false) {
let nicerPricer = parseFloat(price).toFixed(2);
let splitted = nicerPricer.split(".");
if (!pure) {
if (splitted[0].length > 3) {
}
nicerPricer = addMilleDots(splitted[0]) + "," + splitted[1] + " €";
}

return nicerPricer;
}