fix: remove duplicate round fn

This commit is contained in:
Arjun Choudhary 2022-11-26 11:30:01 +05:30
parent 26708dc26d
commit 10558f8cce

View File

@ -141,12 +141,3 @@ export function deepClone(candidate) {
return cloned;
}
/**
* Round a number to the closes precision, max max precision 4
* @param {Number} d Any Number
*/
export function round(d) {
// https://floating-point-gui.de/
// https://www.jacklmoore.com/notes/rounding-in-javascript/
return Number(Math.round(d + "e4") + "e-4");
}