Double variable range

tiredofit

Well-known Member
Joined
Apr 11, 2013
Messages
1,915
Office Version
  1. 365
  2. 2019
Platform
  1. Windows
A Double is defined to be in the range:

Code:
-1.79769313486231E308 to -4.94065645841247E324

and

Code:
4.94065645841247E-324 to 1.79769313486232E308

Why not just say,

Code:
-1.79769313486231E308 to 1.79769313486232E308

ie going from a large negative number, approaches zero, "through" zero, then to a large positive number?

Thanks
 

Excel Facts

How to find 2nd largest value in a column?
MAX finds the largest value. =LARGE(A:A,2) will find the second largest. =SMALL(A:A,3) will find the third smallest
You're missing some minus signs. The documentation says:

Holds signed IEEE 64-bit (8-byte) double-precision floating-point numbers that range in value from -1.79769313486231570E+308 through -4.94065645841246544E-324 for negative values and from 4.94065645841246544E-324 through 1.79769313486231570E+308 for positive values. Double-precision numbers store an approximation of a real number.

They're trying to show the extreme magnitudes that are possible, both in the large and small dimensions. The Double does NOT hold every possible number between -1.79769313486231570E+308 and 1.79769313486231570E+308. For example, 9.0E-400 or -9.0E-400 is an extremely tiny number between -1.79769313486231570E+308 and 1.79769313486231570E+308, but cannot be represented in a Double due to the -400 exponent.
 
Upvote 0

Forum statistics

Threads
1,223,639
Messages
6,173,496
Members
452,516
Latest member
druck21

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top