Alex Rivera | Logout

Letters within integers. What are they?

Asked 2008-10-02T23:31:07.777
11

This is an excerpt of code from a class I am working with in Java (below). Obviously the code is defining a static variable named EPSILON with the data type double. What I don't understand is the "1E-14" part. What kind of number is that? What does it mean?

final double EPSILON = 1E-14;

Edit
Report

1 Answer

8

1E3 => 1000

1E-1 => 0.1

1E-2 => 0.01

It's a way for writing 1 * 10-14

answered 2008-10-02T23:33:14.900

Your Answer