I want to convert double value of 1.09478878083135368E7 to int. so I use
int formatted = (int)1.09478878083135368E7;
Then I send this value to another activity as a string by using
final string distance = String.valueOf(formatted);
I'm expecting to see "1" as a result but what I'm getting is 10947878. Any idea?