Skip to content

mixing Fixed and Normed #126

Description

@rapus95

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions