cara mengubah angka menjadi angka desimal di java

public class StringNumberToDecimal {

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

	}
}
Defeated Dormouse