3 ms·
> Whats wrong with "double_t"? /checks the spec Hmm, a type that might be like double or might be like long double or might be implementation defined, depend
by Aardwolf 8y ago
> Whats wrong with "double_t"?
/checks the spec
Hmm, a type that might be like double or might be like long double or might be implementation defined, depending on a "FLT_EVAL_METHOD", knowing that double and long double still are also implementation defined
What problem does double_t even solve then?
- rightbyte 8y agoIt's maybe the type with most precision according to whoever wrote the header at the chip manufacturer , so you can use it to do a calculation with hardware types with the least amount of error on the platform, maybe. My point is, if IEEE 754 is a problem, you probably need to check things yourself anyway and can't trust whoever wrote numerical_limits at the chip manufacturer and that it applies to your platform without e.g. adding interrupt handlers etc. So you can't trust this template anyways.