mirror of
https://github.com/Sonarr/Sonarr.git
synced 2026-04-26 22:56:23 -04:00
807cfebf76
Fixed: Number input changing value while typing New: Maximum size limit has been doubled Closes #2921
6 lines
171 B
JavaScript
6 lines
171 B
JavaScript
export default function roundNumber(input, decimalPlaces = 1) {
|
|
const multiplier = Math.pow(10, decimalPlaces);
|
|
|
|
return Math.round(input * multiplier) / multiplier;
|
|
}
|