nan_payload is an Ada package that provides support for using the NaN payload field from IEEE-754 floating point. Storing 'non-available' errors as well as other symbolic values instead of any of the numbers in numeric arrays is necessary in many statistical applications. The package allows you to read and write the part of NaN IEEE754-64 bit values known as 'the payload', which is 51 bits long, and also to treat the long_float type as an implicit tagged type by storing tags and values in the payload. Calendar dates with ms resolution as well as 9-letter symbols and some not available/error codes are provided as subtypes. Formatted output with Fortran-like descriptors as well as reading values from strings for these types is also provided.
|Tags||Ada Numerics IEEE-754 Library date symbol|