Forum Discussion
Altera_Forum
Honored Contributor
16 years agoFor add/substract floating point numbers use altfp_add_sub megafuntion, for multiply altfp_mult megafuntion. All megafunctions whose names begin with "altfp" operate with floating point numbers (single precision 32 bits and double precision 64 bits). Be carefull, because floating point arithmetic is expensive, check this first.