import { timesPrecision } from './chunk-5Q32IPX3.mjs';
import { createOperationPrecision } from './chunk-ITZVOK4F.mjs';
import { digitLengthPrecision } from './chunk-HHTSEVTB.mjs';

// src/numberMinusPrecision.ts
var minusPrecision = createOperationPrecision((num1, num2) => {
  const baseNum = 10 ** Math.max(digitLengthPrecision(num1), digitLengthPrecision(num2));
  return (timesPrecision(num1, baseNum) - timesPrecision(num2, baseNum)) / baseNum;
});

export { minusPrecision };
