Categories
b. Variables and Keywords

double and float

Keywords double and float are used for declaring floating type variables. For example:

float number;
double longNumber;

Here, number is a single-precision floating type variable whereas, longNumber is a double-precision floating type variable.

Leave a Reply

Your email address will not be published. Required fields are marked *