Programming Tutorials Browser Tutorials Articles Struts Tutorials Hibernate Tutorials

  Tutorial: Floating-point

Floating-point numbers are like real numbers in mathematics, for example, 3.14159, -0.000001.

Tutorial Details:

Floating-point numbers are like real numbers in mathematics, for example, 3.14159, -0.000001. Java has two kinds of floating-point numbers: float and double, both stored in IEEE-754 format. The default type when you write a floating-point literal is double.

Limited precision
Because there are only a limited number of bits in each floating-point type, some numbers are inexact, just as the decimal system can not represent some numbers exactly, for example 1/3. The most troublesome of these is that 1/10 can not be represented exactly in binary.


 

Rate Tutorial:
http://www.roseindia.net/java/java-tips/data/basic_types/22floatingpoint.shtml

Read Tutorial at: Click here to view the tutorial

Rate Tutorial:
Floating-point

View Tutorial:
Floating-point

Related Tutorials:

Integrating Databases
Integrating Databases
 
Getting started with Java 2D - JavaWorld - July 1998
Getting started with Java 2D - JavaWorld - July 1998
 
Accelerate your Java apps! - JavaWorld - September 1998
Accelerate your Java apps! - JavaWorld - September 1998
 
Build your own languages with JavaCC - JavaWorld December 2000
Build your own languages with JavaCC - JavaWorld December 2000
 
Device programming with MIDP, Part 1 - JavaWorld January 2001
Device programming with MIDP, Part 1 - JavaWorld January 2001
 
Object-oriented language basics, Part 7
Object-oriented language basics, Part 7
 
My kingdom for a good timer!
My kingdom for a good timer!
 
Navigate through virtual worlds using Java 3D
Navigate through virtual worlds using Java 3D
 
Related Values Processing Framework (RVPF)
Related Values Processing Framework (RVPF) Overview The Related Values Processing Framework is being developed to help the integration of Process Control Data Historian Systems. This is done by providing support for the conversion, computation and di
 
StelsCSV - JDBC driver for text files
StelsCSV is a CSV JDBC type 4 driver that allows to perform SQL queries and other JDBC operations on text files (comma separated, tab separated, fixed length etc). Using this driver, you can easily create a simple database consisting of plain text files.
 
Getting Started With the Mobile 3D Graphics API for J2ME
This tutorial introduces the Mobile 3D Graphics API for J2ME, JSR 184. The article presents an overview, potential application areas, the differences between JSR 184 and two related APIs, the classes in the new optional package, the programming model, the
 
StelsCSV v2.2 - JDBC driver for CSV files
*StelsCSV* is a JDBC driver that allows to perform SQL queries and other JDBC operations on text files (CSV, tab-separated, fixed length etc). Using this driver, you can easily create a simple database consisting of plain text files.
 
Site navigation
 

 

Send your comments, Suggestions or Queries regarding this site at roseindia_net@yahoo.com.

Copyright © 2006. All rights reserved.