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 ago --- Quote Start --- I try 1 example (0.25) for my better understand; 0.25x2^2 = 0.5 which get rounds 1, which is 1 in binary. Do I right? thanks for reply --- Quote End --- No, 0.25 x 2^2 = 1 Answer is 0.01