News for hackers. Stuff that matters.
Re:Yet another alternative to floating-point numbers by bobowzki on Sunday November 01, 2020 @01:06AM (#24957531)
Fixed point is very common, at least in some areas.
Re:Yet another alternative to floating-point numbers by MaxBarraclough on Sunday November 01, 2020 @06:50AM (#24958843)
GCC has some support for fixed-point arithmetic, as an extension to the C language. Unfortunately only a very few target architectures are supported, not including AMD64. [0] (Unfortunately this page doesn't list which architectures are supported.)

As carlmr mentioned, the Ada language has built-in support for fixed-point arithmetic types.

[0] https://gcc.gnu.org/onlinedocs/gcc/Fixed-Point.html

Re:Yet another alternative to floating-point numbers by flohofwoe on Sunday November 01, 2020 @08:08AM (#24959236)
You don't need special compiler support for fixed-point-math, just left- and right-shift to "move the point around".