UM C API  6.16.1
lbmpdm_decimal_t Struct Reference

Structure to hold a scaled decimal number. A scaled decimal number consists of a mantissa $m$ and an exponent $exp$. It represents the value $m\cdot 10^{exp}$. More...

#include <lbmpdm.h>

Data Fields

int64_t mant
 
int8_t exp
 

Detailed Description

Structure to hold a scaled decimal number. A scaled decimal number consists of a mantissa $m$ and an exponent $exp$. It represents the value $m\cdot 10^{exp}$.

The mantissa is represented as a 64-bit signed integer. The exponent is represented as an 8-bit signed integer, and can range from -128 to 127.

Field Documentation

int8_t lbmpdm_decimal_t::exp

Exponent.

int64_t lbmpdm_decimal_t::mant

Mantissa.


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