Signed fixed point values Conversion

Software questions and issues with the FV-1

Moderator: frank

Post Reply
hgamal
Posts: 3
Joined: Sat Jan 30, 2010 12:08 pm
Location: Rio de Janeiro - Brazil

Signed fixed point values Conversion

Post by hgamal »

I am trying to write a FV-1 command line assembler.

I would like to know if there is a known algorithm to convert strings/hex to S1.14 S1.9 S.10 Signed fixed point format and vice versa.

Any other algorithm, like hex to real function are welcome.
Digital Larry
Posts: 338
Joined: Mon Nov 12, 2012 1:12 pm
Contact:

Post by Digital Larry »

hgamal
Posts: 3
Joined: Sat Jan 30, 2010 12:08 pm
Location: Rio de Janeiro - Brazil

Post by hgamal »

Great! :)

Thank you!
Digital Larry wrote:Here's what you want, in Java:

https://github.com/HolyCityAudio/SpinCA ... ction.java
gpProductions
Posts: 1
Joined: Fri Dec 11, 2015 11:40 pm

Post by gpProductions »

Here is a great wikipedia article related to the fixed point number format used by the FV1 and conversion formulas that helped me out.

https://en.wikipedia.org/wiki/Q_(number_format)
Post Reply