Hi All, I want to get float value of a string, but for small values I get it in the form "6.0E-4". Can any1 help me in getting 0.0006 in Float value??? public class flt1{ public static void main(String kk[]){ String val = "0.0006"; Float resultflt = new Float(val); System.out.println("Flt val is "+resultflt.floatValue()); } } Thanks in advance. Mahesh
Dirk Schreckmann
Sheriff
Joined: Dec 10, 2001
Posts: 7023
posted
0
Pretty please don't post the same question in multiple categories. Look in the Beginner's Forum for at least one idea so far.