public class StringNumberToDecimal { public static void main(String[] args) { String string = "10"; float decimalValue = Float.parseFloat(string); System.out.println(decimalValue); } }