Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
13 years ago

integer arithmetic

I'm getting weird results when I do integer division. Frequency is being read in as 60 but the result being stored in var_1b /= 1e9/60 (~1.6E7). Instead the result reported by temp2 is 20522. ...