I need to format a number (decimal) into a string with minimal decimal points.
for example, let's say the minimal decimal point is 3
- 123.123654 => 123.123654
- 123.12 => 123.120
- 123.1 => 123.100
- 123 => 123.000
What is the best way to achieve this result?