Forum Discussion
Altera_Forum
Honored Contributor
15 years agoHi Reckan,
Welcome to Altera forum. It's difficult to handle floating point numbers, so I think you can use the Altera's IP mega function lpm_divide (http://quartushelp.altera.com/9.1/master.htm#mergedprojects/hdl/mega/mega_file_lpm_divide.htm?gsa_pos=1&wt.oss_r=1&wt.oss=lpm_divide). You can take the remaining part and use it with integer operations. You can simply multiply the number by 10 or 100 (depending on how many digits you want after the whole part) and then add the remaining part. Best regards, VT