07-29-2022 09:29 AM
I know that the first bit in a signed fixed-point number is the sign (0=+, 1=-) but is there an efficient way to invert this sign? It seems like it would be straight forward to just change a 0 to a 1 or a 1 to a 0 but I didn't find any FPGA functions doing this. It feels like overkill to multiply the number by -1. Do I have to somehow convert from fixed point to binary and change the leading bit directly?
Thank you for your help!
Solved! Go to Solution.
07-29-2022 09:32 AM
07-29-2022 09:37 AM
Oh damn! That works for fixed point too? When I saw it I thought it was only for floating point. Well I'm embarrassed now. 😅 Thanks for your help.