c - Is FLT_RADIX ever not 2 in c11 for modern general purpose computers? -


that's pretty question in title. seems totally unnatural else used. in researching found there historical examples of hardware support base 10, more modern examples of ibm power6 , system z9. in these cases, not know if flt_radix 10 on mainstream c compilers. particular concern writting code application ever ran on general purpose computers, , know if can statically assert "flt_radix==2" without serious concern, how statically asserting "!(unsigned char)256".

annex f, "optional" part of c standard that's non-optional serious implementation floating point used, requires ieee single , double precision (binary32 , binary64) float , double, respectively, flt_radix should 2. on systems new decimal float stuff supported, it's separate extended type; flt_radix==10 not used it.


Comments

Popular posts from this blog

node.js - How to mock a third-party api calls in the backend -

node.js - Why do I get "SOCKS connection failed. Connection not allowed by ruleset" for some .onion sites? -

matlab - 0-by-1 sym - What do I need to change in order to get proper symbolic results? -