/home/bdqbpbxa/dev-subdomains/admin.pixory.goodface.com.ua/src/api/utils/math.ts
export function round(num: number, decimals = 2): number {
  if (decimals < 0) {
    throw new Error("Decimals must be a non-negative integer");
  }
  const factor = Math.pow(10, decimals);
  return Math.round(num * factor) / factor;
}