📅  最后修改于: 2022-03-11 14:52:22.142000             🧑  作者: Mango
public class StringNumberToDecimal {
public static void main(String[] args) {
String string = "10";
float decimalValue = Float.parseFloat(string);
System.out.println(decimalValue);
}
}