Skip to content

support ^ operator with (double,double) arguments #52

Description

it should map to Math.pow(double,double) etc... or does this already work somehow?

Activity

  1. StefanLobbenmeier commented on Nov 13, 2019

    @StefanLobbenmeier

    Sorry for answering on such an old issue.
    The operator ^ is already used in java for bitwise xor. Example:

            assert (true ^ false) == true;
            assert (true ^ true) == false;
            assert (0b1111 ^ 0b0100) == 0b1011;

    For double and float this operator currently does not apply. Still adding this (besides the question whether this is doable) will lead to confusion, so I would not like having this.

    In python there is a different operator (**) that is used for exponentiation. Adding this to java might make sense, although I am not sure if this can be done by this plugin.

  2. StefanLobbenmeier commented on Nov 13, 2019

    @StefanLobbenmeier

    I just checked the code - my first guess would be to add an operator to the map here

    and check if it "just works".

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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions