Slider ignore decimal vaues
See original GitHub issueWhen stepArray is used, decimal point is ignored for value/highValue.
<ng5-slider [(value)]="value" [(highValue)]="highValue" [options]="options"></ng5-slider>
export class AppComponent { value: number = 13.5; highValue: number = 128.3; options: Options = { floor: 0.1, ceil: 250.2, stepsArray:[{value:0.1}, {value:13},{value:13.2},{value:13.5},{value:13.8},{value:14}, {value:128}, {value:255}], step: 0.1 }; }
value will be selected 14, even 13.5 is in list.
Issue Analytics
- State:
- Created 4 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
how to remove decimal value (.00) from slider control
Solved: Please ask me how to remove decimal value (.00) from slider control and add % (if possible) in after effects cs6. -...
Read more >Slider ignore decimal vaues · Issue #137 - GitHub
When stepArray is used, decimal point is ignored for value/highValue. export class AppComponent { value: number = 13.5; highValue: number = 128.3; ......
Read more >Remove Decimal From Price Slider - WordPress.org
Is there any way to remove the decimal value form price slider.We doesnt want to show the decimal value for price. Screenshot:https://prnt.sc/vygqek
Read more >Hide / Remove .0 decimals from UISlider - Swift 4
Convert to Int to get rid of decimal numbers, inputValue.text = "\(Int(creditNumber.value))" + " $ ".
Read more >After effects expression how to round DOWN or remove ...
slider = (effect("Slider Control")("Slider").value); tidying = (Math.round(slider * 100))/100; SourceText = "$" + tidying + "bn" +"\r" ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

Problem is from v1.2.0, everything was fine in 1.1.14
Released in v2.0.1. Closing.