The maximum value of double is greater than the maximum value of long because they represent different types of data. Long is an integer type that can store whole numbers with a precision of up to 64 bits or 8 bytes. Double is a floating-point type that can store decimal numbers with a precision of up to 64 bits or 8 bytes as well. However, double uses some of its bits to store the exponent, which allows it to represent larger values than long. Therefore, even though they have the same memory size, double can represent larger values due to its ability to represent fractional values and a wider range of numbers.
Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss
Asked: 2021-04-26 11:00:00 +0000
Seen: 19 times
Last updated: Apr 04 '23
Is there a defined time interval between the clocks of 2 bytes during SPI timing?
What is the maxRequestLength in the .Net 4.5.1 framework?
What does the error "Bar 0; array size is too large, maximum size is 100000" mean?
How can the text size of the plot be enlarged using ggcuminc?
How can I transfer the dimensions of a ChartArea from one PowerPoint chart to another?
The size of the plot returned by df.hist() is not the desired one.
How can I sort products that have the size attribute available in stock in Woocommerce?
What is the appropriate size for App store screenshots on a 6.5" display?