mirror of https://github.com/qortal/qortal-ui
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
4 lines
109 B
4 lines
109 B
2 years ago
|
export function roundToNearestDecimal(num) {
|
||
|
const mb = num / 1000000;
|
||
|
return Math.round(mb * 10) / 10;
|
||
|
}
|