I need to save an Array in this format
const price = [ 1.000, 24.500, 3.99, 4.00 ];
However, when I use console.log to print it, the numbers get truncated to integers (1 instead of 1.000, and 4 instead of 4.00).
What's the best way to preserve the decimal points and keep the thousand separator?