mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-14 11:50:31 +00:00
4 lines
95 B
JavaScript
4 lines
95 B
JavaScript
|
|
export function roundTo(num, to = 2) {
|
|
return +(Math.round(num + "e+" + to) + "e-" + to);
|
|
} |