We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hello to all,
I have an arbitrary precision floating point variable ac_float<17,2,7>, which I want to typecast in double through the following line of code:
ac_float<17,2,7>
ac_float<17,2,7> x; double temp = (double)x;
Is there any way to do that? As far as I can see, the ac_ieee_float class has an operator for that
explicit operator double() const { double f; ac::copy_bits(d, &f); return f; }
Is there any reason for which this type of operator doesn't appear in the ac_float class?
ac_float
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Hello to all,
I have an arbitrary precision floating point variable
ac_float<17,2,7>
, which I want to typecast in double through the following line of code:Is there any way to do that? As far as I can see, the ac_ieee_float class has an operator for that
Is there any reason for which this type of operator doesn't appear in the
ac_float
class?The text was updated successfully, but these errors were encountered: