I want to convert a long double to string without scientific notation in Dart, I thought just doing a .toString() would do the trick but it's not the case.
Here's my code:
void main() {
double num = 0.00000000196620214137477;
String numToString = num.toString();
print(num);
print(numToString);
}
This is what it prints:
1.96620214137477e-9
1.96620214137477e-9
I want a string representation of the number as it was written when defined. So the printout I want after converting to string is:
0.00000000196620214137477
Thanks in advance.
0.00000196620214137477e-3
, would you want to see that as the output too? – Anathema