Uploaded image for project: 'Felix'
  1. Felix
  2. FELIX-5306

User friendly syntax for floats and doubles in FileInstall

    XMLWordPrintableJSON

Details

    Description

      The format for specifying a float in the .config format is <key>=F"<float value> and similarly for doubles but with the type character D.

      When the floats and doubles are encountered in the config, java.lang.NumberFormatException is thrown with the message like:

      java.lang.NumberFormatException: For input string: "400.333"
      	at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
      	at java.lang.Integer.parseInt(Integer.java:580)
      	at java.lang.Integer.parseInt(Integer.java:615)
      

      The code is actually parsing using Integer and Long classes!!

      Attachments

        Issue Links

          Activity

            People

              gnodet Guillaume Nodet
              munene.kiruja munene kiruja
              Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: