NumberFormat java code example
Example 1: Intl.NumberFormat
console.log(new Intl.NumberFormat('de-DE', { style: 'currency', currency: 'EUR' }).format(number));
Example 2: formatting and parsing numbers
Formatting is converting a date, time, number, message or other object from
its internal representation into a string. Parsing is the reverse operation.
It is the process of converting a string to an internal representation of the
date, time, number, message or other object.