Opened 7 years ago

Last modified 7 years ago

#14990 open bug

Spinner uses step of 0 when step is 1e-7 or less

Reported by: pmize3 Owned by:
Priority: minor Milestone: none
Component: ui.spinner Version: 1.11.4
Keywords: Cc:
Blocked by: Blocking:


The spinner's _precisionOf function fails to properly return the decimal places when the step is smaller than 1e-6. This is due to the fact that the number is represented in the "XeY" instead of the "0.000" format when the number is smaller than 1e-6 and the _precisionOf function is expecting the latter.

Example: var spinner = $( "#spinner" ).spinner({step: 0.0000001});

Change History (1)

comment:1 Changed 7 years ago by Scott González

Status: newopen
Note: See TracTickets for help on using tickets.