I recently had to add several differences of N0f8 values to finally take the abs of it. Thus I tried to do
#a,b of type N0f8
x = zero(Q7f8)
x += a - b
which 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 to Q7f8 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.
I recently had to add several differences of
N0f8values to finally take theabsof 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,btoQ7f8which 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.