Angular Mat-Slider Min Max Problem On Float Numbers Have 'e'

462 Views Asked by At

I'm trying to use mat-slider on numbers like; min: -1.7976931348623157e+308, max: 1.7976931348623157e+308 step:0.01 But it doesn't behave as it is. The number gets changed just between min and max, not steps 0.01.

<mat-slider *ngIf="valueType === 'slider'" [formControlName]="name" [id]="name" [step]="0.01" [min]="minValue" [max]="maxValue"></mat-slider>

0

There are 0 best solutions below