Uploaded image for project: 'Commons JEXL'
  1. Commons JEXL
  2. JEXL-180

Documentation - suggests using float for financials

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.0
    • Labels:
      None

      Description

      The examples page:
      https://commons.apache.org/proper/commons-jexl/reference/examples.html
      Uses a Float type to represent dollar amounts. This is a bad idea--floating point values are not large enough to represent larger transactions and this could teach developers bad habits, especially in enterprise environments.

      At the least you should use the Double class in your example.

        Attachments

          Activity

            People

            • Assignee:
              henrib Henri Biestro
              Reporter:
              kr99 Kimball Robinson
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: