HPGCC3 Documentation 3.0 R003

XREAL Struct Reference

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.

Detailed Description

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.

Definition at line 36 of file extreal.h.


Field Documentation

signed XREAL::Exp

31-bit exponent (signed)

Definition at line 44 of file extreal.h.

unsigned long long XREAL::Mant

64-bit Mantissa

Definition at line 40 of file extreal.h.

unsigned XREAL::Sign

Sign bit.

Definition at line 48 of file extreal.h.


The documentation for this struct was generated from the following file: