How to creates and display a float number in java.

How to creates and display a float number in java.


Posted in : Core Java Posted on : October 4, 2010 at 4:09 PM Comments : [ 0 ]

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

Download this code.

Go to Topic «PreviousHomeNext»

Your Comment:


Your Name (*) :
Your Email :
Subject (*):
Your Comment (*):
  Reload Image
 
 

 
Tutorial Topics