Single / Double Precision Floating Numbers:
In some cases decimal fractional components of numbers can go up to infinity [e.g.: pi], but computer don’t have that much space to hold, there has to be some limit at which computer stops keeping track of the digits to the right of decimal point.
Single-Precision Floating-Point number can only hold between -3.4 * 10^38 and +3.4 * 10^38.
Double-Precision Floating-Point number can hold between -1.7 * 10^308 and +1.7 * 10^308.
*Avoid using double-precision numbers unless otherwise needed for more accurate results [e.g.: Scientific Calculations].
~ Ram ~
No comments:
Post a Comment