Java Programming/Keywords/float

float is a keyword which designates the 32 bit float primitive type.

The java.lang.Float class is the nominal wrapper class when you need to store a float value but an object reference is required.

Syntax:

float <variable-name> = <float-value>;

For example:

Computer code
float price = 49.95;

See also:

Category:Book:Java Programming/Keywords#float%20Category:Pages with deep filing
Category:Book:Java Programming/Keywords Category:Pages using deprecated enclose attributes Category:Pages with deep filing