Double

The double data type is used for storing double-precision decimal numbers.

double pi = 3.14159265359;
double salary = 55000.75;

Provides more precision and range compared to float, making it suitable for mathematical calculations requiring high accuracy.

Occupies 8 bytes (64 bits).

Related concepts

Double — Structure map

Clickable & Draggable!

Double — Related pages: