Forum Discussion
Altera_Forum
Honored Contributor
9 years agoHow to square a fixed point number?
Assuming I have a 16 bit fixed point number that needs to be squared, how should this be implemented? The number format is Q2.14. Squaring it shall produce a result that is 32 bits instead a...
Altera_Forum
Honored Contributor
9 years agoAre the values signed or unsigned?
As you indicate that format is Q2.14 I guess they are signed and that the value is between -1.0 and 1.0 (both inclusive) In that case you can safely discard the two upper bits in the (scaled) Q4.14 and feed the remaining Q2.14 further.