I need to convert String to primitive float without losing decimal points.
Ex : String s = "11.50";
need to be converted as primitive float as 11.50f
without losing decimal points in Java. Any help is appreciated. I want only float only. Its not for printing purpose. Its to store in DB.