-
Notifications
You must be signed in to change notification settings - Fork 33
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
mixing Fixed and Normed #126
Comments
An interesting issue related to this is: julia> promote_type(UInt8, Int8)
UInt8
julia> UInt8(1) - Int8(2)
0xff Update: detailed discussion goes in JuliaLang/julia#9292 |
We should define promotions that make sense. Care to give it a crack? In practice, the two number types are slightly different: |
I recently had to add several differences of
N0f8
values to finally take theabs
of it. Thus I tried to dowhich probably would've failed due to the difference being negative and thus not representable.
Thus the next step for me would've been to convert
a,b
toQ7f8
which didn't work.Thus my question: Is there any reason why we can't mix up these types?
btw
promote(N0f8(.5), Q7f8(.5))
throws an error.The text was updated successfully, but these errors were encountered: