Floating-Point Types
Floating point numbers, also known as real numbers are used whenever evaluating expression which needs fractional precision. For instance, calculation like as square root and transcendentals such as sine and cosine, result in value whose precision needs a floating-point type. A Java implements the standard (IEEE-754) set of floating point types an operator. There are two categories of floating point types, float and double that represent single and double precision numbers, correspondingly. Their width and ranges are display here:
Every of these floating point types are examined next.