I have added the decimals option to set the desired number of decimal places. It defaults to 2, which is the default value for nouisliders. This means that this change is not code-breaking.
If you set decimals=0, the decimal places are completely removed. This is useful if step=1 is an integer.
If you set decimals=1, you get one decimal place. This only makes sense if step=0.1 is a floating point number. Otherwise you could not select such numbers.
I have added the
decimals
option to set the desired number of decimal places. It defaults to 2, which is the default value for nouisliders. This means that this change is not code-breaking.decimals=0
, the decimal places are completely removed. This is useful ifstep=1
is an integer.decimals=1
, you get one decimal place. This only makes sense ifstep=0.1
is a floating point number. Otherwise you could not select such numbers.Fixes #165