[richfaces-issues] [JBoss JIRA] Created: (RF-11286) rich:inputNumberSpinner with step=0.1

Konrad Kowalski (JIRA) jira-events at lists.jboss.org
Wed Aug 10 11:15:30 EDT 2011


rich:inputNumberSpinner with step=0.1
-------------------------------------

                 Key: RF-11286
                 URL: https://issues.jboss.org/browse/RF-11286
             Project: RichFaces
          Issue Type: Bug
      Security Level: Public (Everyone can see)
          Components: component
    Affects Versions: 4.0.0.Final
            Reporter: Konrad Kowalski


There is a problem with rich:inputNumberSpinner. When I use it like below: 

<rich:inputNumberSpinner value="0" step="0.1" minValue="0" />

And increase the value I have following values:

1. 0
2. 0.1
3. 0.2
4. 0.30000000000000004
5. 0.4
6. 0.5
7. 0.6
8. 0.7
9. 0.7999999999999999
10. 0.8999999999999999
11. 0.9999999999999999
12. 1.9999999999999999
13. 1.2
14. 1.3
...

There is simple sum in JS code. You should do this like in RichFaces 3.3 ;] with rounding. I`ve tried it and works fine.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the richfaces-issues mailing list