Reputation: 229
I have a method to return the result value,
---------
const values = 123.10000;
const result = i18n.n(values, 'number');
return result;
--------
In the above ,I need to round off the result to 3 decimal point , I tired tofixed , rounD off method but the zeros are not be included in it .
expected output
result is 123.100.
but i am getting 123.1
,
how should i add the decimal round off method to 3 decimal digits with the values having zeros
Upvotes: 0
Views: 351