4 ms·
The paper says that C and C++ don't support fixed point numbers, though with C++ you can write a fixed point class that's nearly the same as a native version. H
by TwoBit 12y ago
The paper says that C and C++ don't support fixed point numbers, though with C++ you can write a fixed point class that's nearly the same as a native version. However, it would still be nice if C or C++ supported a native fixed point type.
- copx 12y agoC's standard library is meant to be small and only include essential things. I remember the C99 standard being widely criticized for including support for complex numbers, a feature considered to be special purpose and thus unfit for the C standard. The following C11 standard addressed this, making support for complex numbers "optional" i.e. a standard conforming C compiler is no longer required to support them. C++ used to follow a similar mindset but this has changed. So we might see built-in fixed point support there in future.