-
-
Notifications
You must be signed in to change notification settings - Fork 419
incorrect rounding in scaled_rounding with scale of 1 #1042
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
Labels
Comments
It's a long time since I last looked at these. |
As I look at this again after 7 years, I can't help thinking that scale factors that are not a power of 10 do not really make a lot of sense. |
The const unsigned numberOfNecessaryFrames = etl::round_infinity_unscaled<sizeof(Frame)>(payloadLength); |
When I run that I get
Shouldn't that be 1 frame? |
I agree. That is subject to issue #1041
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Most rounding functions in scaled_rounding don't work as intended if
SCALING==1
. I suggest tostatic_assert
in the codevalue
ifSCALING==1
Can you please clarify which behaviour is intended? Then somebody could start a pull request...
Based on ETL version 20.40.0.
The text was updated successfully, but these errors were encountered: