That's pretty much my question in the title. It seems totally unnatural for anything else to be used.
In researching this I found that there are historical examples of hardware support for base 10, as well as the more modern examples of IBM POWER6 and system z9. Even in these cases, I do not know if FLT_RADIX
would be 10 on any mainstream C compilers.
My particular concern is that I am writing code for an application that will only ever be ran on general purpose computers, and I would like to know if I can statically assert FLT_RADIX==2
without serious concern, like how I am currently statically asserting !(unsigned char)256
.