Skip to Main Content

New to Java

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Please explain double and long ranges

843785Feb 10 2009 — edited Feb 10 2009
double range is 4.9e-324 to 1.8e+308.

So does this mean a double variable could represent PI as 3.14159265358...out to 300 or so places? and 0.0000000....1 with about 300 zeros added in?

If this is true, than why is a long's range only from approximately -9.2e18 to 9.2e18?
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 10 2009
Added on Feb 10 2009
6 comments
1,641 views