Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

how to convert a number into a decimal number in java

public class StringNumberToDecimal {

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

	}
}
 
PREVIOUS NEXT
Tagged: #convert #number #decimal #number #java
ADD COMMENT
Topic
Name
9+5 =