java - how to print precise floating double values -
i want print double value 0.000027
, it's getting printed 2.7340e-05
.
i'm using-
edittextyard.settext(string.format(locale.us, "%6.4e"));
please help...
this convert given double value show decimal point 7
double value = 0.0000027; system.out.println(string.format("%.7f", (double)value));
you may use this
edittextyard.settext(""+string.format("%.7f", (double)value));
Comments
Post a Comment