• Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • core
    • Jenkins 2.371

      If you use <f:number> in forms, you are able to input operators like + or -, but only two of them.
      e is an allowed input too, I assume it refers to e as constant in this case?
      Though, if you input e, the form complains about you not providing a number.

      This is replicable on https://weekly.ci.jenkins.io/design-library/Progress/, if you head over to progressive rendering and find factors of a number.

          [JENKINS-69716] <f:number> allows non-number input

          Markus Winter added a comment -

          that is to allow scientific notation I guess.

          1e3 = 1000

          1e-3 = 0.001

          https://coolconversion.com/math/scientific-notation-to-decimal/Convert_1e3_to-number

          Markus Winter added a comment - that is to allow scientific notation I guess. 1e3 = 1000 1e-3 = 0.001 https://coolconversion.com/math/scientific-notation-to-decimal/Convert_1e3_to-number

          that is to allow scientific notation I guess.

          I had the same thoughts, but it is not. 1e-3 isn't considered as valid input at all, where 1e3 computes internally to -1.0000000004656613 which results in an IllegalArgumentException, that breaks the form.

          Alexander Brandes added a comment - that is to allow scientific notation I guess. I had the same thoughts, but it is not. 1e-3 isn't considered as valid input at all, where 1e3 computes internally to -1.0000000004656613 which results in an IllegalArgumentException, that breaks the form.

            Unassigned Unassigned
            notmyfault Alexander Brandes
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: