| |||||||||||||||||||||||||||
Technical Support On-Line Manuals C251 User's Guide | Double NumbersScalars of type double are stored using eight bytes (64 bits). Type double numbers have a precision of 53 bits, which represents about 13 decimal digits. The format used follows the IEEE-754 standard. A double number is expressed as the product of two parts: the mantissa and the exponent. The mantissa stores the actual digits of the number. The exponent stores the power to which the mantissa must be raised. For example: ±mantissa × 2exponent The mantissa represents the actual binary digits of the floating-point number. The power of two is represented by the exponent. The stored form of the exponent is an 11-bit value from 0 to 2047. The actual value of the exponent is calculated by subtracting 1023 from the stored value (0 to 2047) giving a range of –1023 to +1024. The mantissa is a 53-bit value (representing about seven decimal digits) whose most significant bit (MSB) is always 1 and is, therefore, not stored. There is also a sign bit that indicates whether the floating-point number is positive or negative. Tyep double numbers are stored in memory on word boundaries in the following format:
Where
| ||||||||||||||||||||||||||
| |||||||||||||||||||||||||||