6 lines
166 B
Plaintext
6 lines
166 B
Plaintext
// If this number is a decimal, make it just five decimal places
|
|
// to avoid exponents
|
|
const sanitize = (v) => Math.round(v * 100000) / 100000;
|
|
|
|
export { sanitize };
|