mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2025-09-17 17:14:18 +02:00
New: Project Aphrodite
This commit is contained in:
5
frontend/src/Utilities/Number/roundNumber.js
Normal file
5
frontend/src/Utilities/Number/roundNumber.js
Normal file
@@ -0,0 +1,5 @@
|
||||
export default function roundNumber(input, decimalPlaces = 1) {
|
||||
const multiplier = Math.pow(10, decimalPlaces);
|
||||
|
||||
return Math.round(input * multiplier) / multiplier;
|
||||
}
|
Reference in New Issue
Block a user