Menu icon Foundation
Range Slider - Remove zero's after comma/dot?

Hello all, I am using the latest Foundation 5.5.3. This version adds two zero's after sliding the range-slider. Is there any option to remove those zero's after the comma/dot?

In example: https://jsfiddle.net/b3vr9pjh/3/

125.00 should be: 125

range sliderfoundation 5.5.3

Hello all, I am using the latest Foundation 5.5.3. This version adds two zero's after sliding the range-slider. Is there any option to remove those zero's after the comma/dot?

In example: https://jsfiddle.net/b3vr9pjh/3/

125.00 should be: 125

This post has been closed. No new replies can be added.

Rafi Benkual almost 4 years ago

Yes - there is a precision setting.

 settings : {
      start : 0,
      end : 100,
      step : 1,
      precision : null,
      initial : null,
      display_selector : '',
      vertical : false,
      trigger_input_change : false,

You can set the precision to 0, 1, 2 depending on your needs.

Dennis almost 4 years ago

Thanks for the quick reply and great answer. This solved my question!