How Can i format my double to get delete all decimal place
18.965518
I want to have 18
my code
distance = crntLocation.distanceTo(newLocation) / 1000; // in km
double newKB = Math.round(distance);
String product_distance = String.valueOf(newKB);
Thanks
0 comments:
Post a Comment