A unique way to handle returning the result value is through the following code snippet:
---------
const values = 123.10000;
const result = i18n.n(values, 'number');
return result;
--------
In the given scenario, I am seeking to round off the result to 3 decimal points. Despite attempting various methods like.toFixed and rounding off, the issue remains that zeros are not included in the result.
Expected output:
result is 123.100.
However, the actual output received is 123.1
,
leaving me pondering on how to include the decimal round-off method capable of showcasing all 3 decimal digits including any associated zeros.