Q
The
Q-Format Converter
This
Windows® application converts between decimal and Q format
numbers. See this
Wikipedia article for a complete description of the
format. From that article:
"Q format numbers are notionally fixed point numbers, that is,
they are stored and operated upon as regular binary signed
integers, thus allowing standard integer hardware/ALU to perform
rational number calculations. The number of integer bits,
fractional bits and the underlying word size are to be chosen by
the programmer on an application-specific basis - the
programmer's choices of the foregoing will depend on the range
and resolution needed for the numbers."
This notation is useful in many embedded applications and I have
used it for years. However I could never find a converter program
or web site that exactly met my needs. So I wrote Q.
In
the CONFIGURATION, you set:
- The word size (8,
16, or 32 bits)
- Whether the number
is signed or unsigned
- The number of
fraction bits
The minimum and maximum
decimal numbers that your format settings support are shown.
Then
under CONVERSION, you can convert numbers in either
direction. The Q formatted number can be displayed in binary,
decimal, or hex.
This
is a simple .exe application and no installation is required. The
program is free, as is, and comes with no warranty whatsoever. You
can download it from here. BTW it needs .NET
4.0 on the PC, which you can get here
if you don't have it already. And that requires an
installation.
If you want to
contact me: mguzewski@gmail.com