We help IT Professionals succeed at work.

# what does 9.999999999999999E-5 mean exactly, help!!

on
Medium Priority
879 Views
i have a Double variable - TEST_DOUBLE that shows up on the screen/xml as  9.999999999999999E-5  can someone please tell me in term of normal decimal number what this equals to exactly?  is it 0.000000....00099999999   or 99999999.99999... etc?

when i put it through this rounding function:

public double roundDouble(double d, int places)
{ return Math.round(d * Math.pow(10, (double) places)) / Math.pow(10, (double) places);   }

roundDouble(TEST_DOUBLE.doubleValue(),2);

it returns back as 0.0 ???

very confused, i know it's some euler number, but just need an exact value of waht 9.99999999999E-5 means. thank you

Comment
Watch Question

## View Solutions Only

Java Developer
CERTIFIED EXPERT
Top Expert 2010

Commented:
it means 9.999 x 10 to the power of -5
Java Developer
CERTIFIED EXPERT
Top Expert 2010
Commented:
ie. 9.9999 x 0.00001 = 0.000099999

Not the solution you were looking for? Getting a personalized solution is easy.

CERTIFIED EXPERT
Top Expert 2016
Commented:
It's an exponent

(9.9/ 100000)
Java Developer
CERTIFIED EXPERT
Top Expert 2010

Commented:
Basicaly the E notation tells you how many places to shift the decimal point

Commented:
ah thanks guys!
Java Developer
CERTIFIED EXPERT
Top Expert 2010

Commented:
no worries :)
CERTIFIED EXPERT
Top Expert 2016

Commented:
:-)
##### Thanks for using Experts Exchange.

• View three pieces of content (articles, solutions, posts, and videos)
• Ask the experts questions (counted toward content limit)
• Customize your dashboard and profile