In Java script, I am using the below method to convert from number to string. In my case, number will be as float number or whole number (123.00 or 123.3456 or 567).
toString() -> it converts into whole number then converts into string. For Example:
var totalAmount = 100.000;
var str = totalAmount.toString();
output is 100
expected output is 100000
var totalAmount1 = 123.456;
var str1 = totalAmount.toString();
output is 123456 expected output is 123456 // Works as expected
I tried String() method also.
Any one help me how to get the expected result of 1st example such as "10000".