question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Slider ignore decimal vaues

See original GitHub issue

When 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:closed
  • Created 4 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
nrevutskycommented, Aug 17, 2019

Problem is from v1.2.0, everything was fine in 1.1.14

0reactions
piotrdzcommented, Nov 4, 2020

Released in v2.0.1. Closing.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found