Opened 3 years ago

Last modified 3 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:

Description

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});

https://jsfiddle.net/161h6821/

Change History (1)

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

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