The goal is to achieve two decimal places excluding zeros
1.2234 => 1.22
0.2345 => 0.23
0.02345 => 0.023 (instead of 0.02)
0.0000002345 => 0.00000023 (instead of 0)
0.0000002346545645645646465465 => 0.00000023 (instead of 0)
0.002035 => 0.002 instead of 0)
I am looking to format numbers using toFixed(2) but only on decimals that are not zero. What is the correct way to do this?