Java float type

Introduction

The type float specifies a single-precision value with 32 bits of storage.

Java type float is useful when you need a fractional component, but do not require a large degree of precision.

For example, float can be useful when representing dollars and cents.

Here are some example float variable declarations:

float highValue, lowValue; 



PreviousNext

Related