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

Popular posts from this blog

sublimetext3 - what keyboard shortcut is to comment/uncomment for this script tag in sublime -

java - No use of nillable="0" in SOAP Webservice -

ubuntu - Laravel 5.2 quickstart guide gives Not Found Error -