4 ms·
>but the standard says hardly anything about their behaviour, making it practically impossible to write code that actually does anything with floats and doubles
by snakeanus 11y ago
>but the standard says hardly anything about their behaviour, making it practically impossible to write code that actually does anything with floats and doubles that will behave correctly on any standards-compliant C implementation.
No, not really. This reminds me the common "you can't write anything serious in C without undefined behaviour" bs.
However, if you DO have a real need of IEEE-compatible floats for whatever reason, then there is nothing wrong with checking __STDC_IEC_559__ and reporting an error if it is not defined. In fact, if you are using a system that doesn't have an IEEE float implementation, using another language won't save you.
>I suggest you refrain from personal attacks, especially based on your own misreadings of the comment you're replying to.
Feel free to show me what I misread. I would also suggest that you try to read the nonsensical bullshit he has been spreading in this thread.
- lmm 11y ago> However, if you DO have a real need of IEEE-compatible floats for whatever reason, then there is nothing wrong with checking __STDC_IEC_559__ and reporting an error if it is not defined. Sure - but in that case why not do the same thing for insisting that char be 8 bits?
- snakeanus 11y agoExcept than the fact that it does not limit you except in some very specific cases, unlike the IEEE incompatible floats thing. If it does limit you somehow and you really need char be 8 bits, then sure.