I've a float data in my code, i need to get the string out of it . the problem is , when I have big number like 10000000 ,It converts the number to something like this : 1.0E7
How can I convert it to the actual number ?
follow this way to get the actual number
float firstNumber = (float) 1.0E7;
String firstNumberAsString = String.format("%.0f", firstNumber);
Log.v(" OUt-Put", firstNumberAsString);
It will Give you:
android V/ OUt-Put: 10000000
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With