double

The type double refers to floating-point numbers stored in 64 bits, as described in the IEEE[1] standard reference 754. The type double will be the default type you use when you want to do some calculations that might involve decimal places (i.e., not integral values).

range of values: These provide numbers that can range between about –1.7E308 to +1.7E308 with about 15 significant figures of accuracy. The exact accuracy depends on the number being represented. Double precision floating-point numbers have the range shown in Figure 4-1.

Figure 4-1. Type double should be used when calculations involve decimal places

image

IEEE 754 arithmetic ...

Get Just Java™ 2 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.