Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for casting from float to Int #31

Open
rdaly525 opened this issue Apr 26, 2019 · 3 comments
Open

Add support for casting from float to Int #31

rdaly525 opened this issue Apr 26, 2019 · 3 comments
Assignees

Comments

@rdaly525
Copy link
Contributor

No description provided.

@nikhilbhagdikar
Copy link
Contributor

This was done sometime back.

@rdaly525
Copy link
Contributor Author

rdaly525 commented May 7, 2019

@nikhilbhagdikar, can you add an explicit unit test showing how to do this?

@nikhilbhagdikar
Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants