'use strict';

/*!
 * @techmely/utils
 * Copyright(c) 2021-2024 Techmely <techmely.creation@gmail.com>
 * MIT Licensed
 */


// src/numberStripPrecision.ts
function stripPrecision(num, precision = 15) {
  return +parseFloat(Number(num).toPrecision(precision));
}

exports.stripPrecision = stripPrecision;
