|
CAEN Utility
2.0.2
Utilities for CAEN projects
|
Platform independent floating point manipulation functions. More...
Functions | |
| int64_t | c_frexp (double value, int16_t *exponent, int8_t *classification) |
| double | c_ldexp (int64_t mantissa, int16_t exponent, int8_t classification) |
Platform independent floating point manipulation functions.
| int64_t c_frexp | ( | double | value, |
| int16_t * | exponent, | ||
| int8_t * | classification | ||
| ) |
To send double precision floating point numbers on network (IEEE 754 compliant): split double into mantissa, exponent and floating-point classification to be read with c_ldexp().
| [in] | value | the value |
| [out] | exponent | the exponent |
| [out] | classification | the classification, specified in c_Float_Classification_t |
Definition at line 1497 of file CAENMultiplatform.c.
| double c_ldexp | ( | int64_t | mantissa, |
| int16_t | exponent, | ||
| int8_t | classification | ||
| ) |
To receive double precision floating point numbers on network (IEEE 754 compliant): merge mantissa, exponent and floating-point classification provided by c_frexp() into double.
| [in] | mantissa | the mantissa |
| [in] | exponent | the exponent |
| [in] | classification | the classification, specified in c_Float_Classification_t |
Definition at line 1547 of file CAENMultiplatform.c.