Specifications

Sun Services
Java™ Programming Language
Module 3, slide 17 of 37
Copyright 2005 Sun Microsystems, Inc. All Rights Reserved. Sun Services, Revision F
Floating Point float and double
The floating point primitives have the following
characteristics:
Floating-point literal includes either a decimal point or
one of the following:
E or e (add exponential value)
F or f (float)
D or d (double)
3.14 A simple floating-point value (a double)
6.02E23 A large floating-point value
2.718F A simple float size value
123.4E+306D A large double value with redundant D