Uploaded image for project: 'Apache Flex'
  1. Apache Flex
  2. FLEX-25847

Odd Long Numbers Appearing In NumericStepper

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • Adobe Flex SDK Previous
    • Apache Flex 4.10.0
    • Spark: NumericStepper
    • None
    • Affected OS(s): Mac
      Affected OS(s): Mac OS 10.6
      Language Found: English

    Description

      Steps to reproduce:

      This happens in Flex 4 and the MAX 2010 Preview Build
      1. Setting the NumericStepper thus:

      <s:NumericStepper id="cutPoint1NS" value="-1.5" stepSize="0.1" snapInterval="0.10" minimum="-2.0" maximum="2.0" baselineShift="0.0" allowValueWrap="false" />

      2. When rendered, start clicking the up arrow.

      Actual Results:

      -1.4
      -1.3
      -1.2
      -1.1
      -1
      -0.8999999999999999
      -0.8
      -0.7
      -0.6000000000000001
      -0.5
      -0.3999999999999999
      -0.30000000000000004
      -0.19999999999999996
      -0.10000000000000009
      0
      0.10000000000000009
      0.20000000000000018
      0.2999999999999998
      0.3999999999999999
      0.5
      0.6000000000000001
      0.7000000000000002
      0.7999999999999998
      0.8999999999999999
      1
      ...
      you get the idea.

      Expected Results:

      -1.5
      -1.4
      -1.3
      -1.2
      -1.1
      -1.0
      -0.9
      -0.8
      -0.7
      -0.6
      -0.5
      -0.4
      -0.3
      -0.2
      -0.1
      0
      0.1
      0.2
      0.3
      0.4
      0.5
      0.6
      0.7
      0.8
      0.9
      1.0
      ...
      again, you get the idea.

      Workaround (if any):

      Let me know if I've done something wrong here, but this seems very straight forward. "stepSize" is set to a value that is easy to add, I assume. Why would I be getting these odd values?

      Attachments

        Activity

          People

            Unassigned Unassigned
            adobejira Adobe JIRA
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: