Top "Fixed-point" questions

Questions about fixed-point arithmetic, done using a set number of decimal places.

Fixed Point Arithmetic in C Programming

I am trying to create an application that stores stock prices with high precision. Currently I am using a double …

c fixed-point
How to use expr on float?

I know it's really stupid question, but I don't know how to do this in bash: 20 / 30 * 100 It should be 66.67 but …

bash floating-point rounding fixed-point
storing money amounts in mysql

I want to store 3.50 into a mysql table. I have a float that I store it in, but it stores …

mysql floating-point currency fixed-point
Converting floating point to fixed point

In C++, what's the generic way to convert any floating point value (float) to fixed point (int, 16:16 or 24:8)? EDIT: For …

c++ fixed-point
Advantages and disadvantages of floating point and fixed point representations

I have been trying for the last three days to understand the exact differences between floating and fixed point representations. …

floating-point fixed-point
Fixed point math in c#?

I was wondering if anyone here knows of any good resources for fixed point math in c#? I've seen things …

c# math fixed-point
C++ fixed point library?

I am looking for a free C++ fixed point library (Mainly for use with embedded devices, not for arbitrary precision …

c++ math fixed-point
Fast fixed point pow, log, exp and sqrt

I've got a fixed point class (10.22) and I have a need of a pow, a sqrt, an exp and a …

c++ c logarithm fixed-point exp
Signed & unsigned integer multiplication

In fixed point math I use a lot of 16bit signals and perform multiplication with 32bit intermediate results. For example: …

c math types multiplication fixed-point
How to convert packed integer (16.16) fixed-point to float?

How to convert a "32-bit signed fixed-point number (16.16)" to a float? Is (fixed >> 16) + (fixed & 0xffff) / 65536.0 ok? What …

floating-point fixed-point