Notice: session_start(): A session had already been started - ignoring in /home/u614325693/domains/onedoubt.com/public_html/post.php on line 3
Java float Keyword - ONEDOUBT.COM

Example

float myNum = 5.75f;

System.out.println(myNum);


Definition and Usage

The float keyword is a data type that can store fractional numbers from 3.4e−038 to 3.4e+038.

Note that you should end the value with an "f":


Related Pages

Read more about data types in our Java Data Types Tutorial

 


Login
ADS CODE