I have large decimal numbers which I am getting from a request & I want to convert them to string. So for EG:
I tried all methods converting to string
var r=12311241412412.1241523523523235
r.toString();
r+'';
''+r;
String(r);
//output
'12311241412412.1241'
//what i want
'12311241412412.1241523523523235'
All methods return the decimal numbers upto 4 digits (12311241412412.1241) but i want all the number till end. I also tried r.toFixed().toString() but each time the length of decimal numbers change.
What would be easy way to do this?