Altera_Forum
Honored Contributor
9 years agoTwo's Complement and Floating Point
Hello,
I have a range of integer values coming into my system in a two's complement format (positive and negative values). I run these through the altfp_convert module to make these integers floating point values. I do various mathematical operations with them, using other altfp modules. At the end, I use the altfp_convert to return the floating point to an integer to be written out. I wanted to confirm that this conversion does not create a two's complement number, but a signed integer instead. I require a two's complement format to send out, and I wanted to make sure that I would have to change the output of the altfp_convert module. Thanks!