How many bits are used for the exponent
I'm writing a few functions that will convert float/double to fixed point and back. Does anyone know the best way to determine the number of bits used for the exponent portion of a float or double? I was hoping to using something from std::numeric_limits, but have had no luck.

Is the exponent part defined by the C++ standard or is it compiler/machine specific? Or can it vary at runtime?


How many bits are used for the exponent
===

I'm writing a few functions that will convert float/double to fixed point and back. Does anyone know the best way to determine the number of bits used for the exponent portion of a float or double? I was hoping to using something from std::numeric_limits, but have had no luck.

Is the exponent part defined by the C++ standard or is it compiler/machine specific? Or can it vary at runtime?

