Forum Discussion
Altera_Forum
Honored Contributor
14 years agoproblem: to_ufixed(0.483,n1)
Hi all; I want to convert 0.483 to ufixed type. Manually, I get 0000.0111 (3 downto -4) when I calculate by hand. But, this value is not same with the value in modelsim which is 0000.1000. I...
Altera_Forum
Honored Contributor
14 years ago0.483 * 2^4 = 7.728, which gets rounded up to 8, which is 1000 in binary. To me it seems Modelsim is right.