Questions tagged [fixed-point]

Questions about fixed-point arithmetic, done using a set number of decimal places. For the combinators used to encode recursion, use [fixpoint-combinators] instead. For the numerical method, use [fixed-point-iteration] instead. For the fixedpoint engine of Z3, use [z3-fixedpoint] instead.

Fixed point arithmetic uses a fixed radix position to do calculations, instead of a variable amount (floating point). Instead of representing numbers using the IEEE mantissa-and-exponent format, numbers are represented as integers which are scaled by a fixed amount. It can be faster and is, within its regime, more precise than floating-point.

Most questions deal with finding a suitable fixed-point library for [insert language here], as most languages lack fixed-point arithmetic in their standard libraries (although some have one natively). Also, different types of fixed point number exist based on the number of decimal points included (and thus accuracy) - see the Q format.

511 questions
-5
votes
1 answer

How to do multiply and add three fixed point numbers

Here is the problem statement - a: 5 bit representation, where 2 MSB bits are integer part and 3 LSB bits are fractional b: 5 bit representation, where 2 MSB bits are integer part and 3 LSB bits are fractional c: 11 bit representation, where MSB bit…
Ukkadam
  • 11
  • 2
1 2 3
34
35