Add support for casting from float to Int
Opened this issue · 3 comments
rdaly525 commented
Add support for casting from float to Int
nikhilbhagdikar commented
This was done sometime back.
rdaly525 commented
@nikhilbhagdikar, can you add an explicit unit test showing how to do this?
nikhilbhagdikar commented
I explained this during previous meeting.
A = get_int(bfloat_var);
B = get_frac(bfloat_var);
if (B>0x80) A++;
I will add a complex test case.