In this example you will see how to creates and display a float number in java.
How to create and display a float number in java.
In this example, you will see how to create and display a float number in java.
Code:CreateAndDisplayFloat .java
package com.devmanuals; public class CreateAndDisplayFloat { public static void main(String[] args) { float fNum=10.5f; System.out.println("Value of float number : "+ fNum); } }Output:
Maximum Value of float : 3.4028235E38
Minimum value of float1.4E-45 |
[ 0 ] Comments