HPGCC3 Documentation 3.0 R003
|
Extended real type that can contain a calculator real. More...
#include <extreal.h>
Data Fields | |
unsigned long long | Mant |
64-bit Mantissa | |
signed | Exp:31 |
31-bit exponent (signed) | |
unsigned | Sign:1 |
Sign bit. |
Extended real type that can contain a calculator real.
This type has a 64-bit mantissa, a 31-bit exponent and 1 bit sign. The total size is 12 bytes (96 bits). Numbers can be stored in two formats:
1) Left justified mantissa with base-2 exponent (number = mantissa * 2^(exponent-63) 2) Right justified mantissa with base-10 exponent (number = mantissa * 10^exponent)
The first format is used by all math operations, while the second format is only useful when printing in base 10, since the mantissa is an integer number and the exponent indicates the number of places for the decimal point.
signed XREAL::Exp |
unsigned long long XREAL::Mant |
unsigned XREAL::Sign |