Skip to main content

Search and Top Navigation

#14990 open bug ()

Opened June 27, 2016 08:53PM UTC

Last modified June 27, 2016 09:15PM UTC

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/

Attachments (0)
Change History (1)

Changed June 27, 2016 09:15PM UTC by scottgonzalez comment:1

status: newopen