Is there a header that provides a type similar to uint64_t for float and double in Linux or gcc?
I wonder if there is a header that provides a type similar
to uint64_t for float and double in Linux or gcc?
While C does not mandate IEEE-754 floating-point, it is universal for all intents and purposes – just like the complement algorithm of 2.
According to this assumption,
<float.h> header has macro definitions:
DBL_MANT_DIG, the number of digits in the mantissa. The value (24) represents a 32-bit, single-precision, IEEE-754 floating-point type. The value (53) represents a 64-bit double type.
Note, however, that the “float” and “double” types can be the same, even with an IEEE-754-compliant implementation. On many platforms, the “long double” type is usually an alias for “double”.