We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c404c01 commit b13ae61Copy full SHA for b13ae61
apps/sim/lib/billing/utils/decimal.ts
@@ -25,13 +25,6 @@ export function toNumber(value: Decimal): number {
25
return value.toNumber()
26
}
27
28
-/**
29
- * Sum an array of values with decimal precision.
30
- */
31
-export function sumDecimals(values: Array<string | number | null | undefined>): Decimal {
32
- return values.reduce((acc: Decimal, val) => acc.plus(toDecimal(val)), new Decimal(0))
33
-}
34
-
35
/**
36
* Format a Decimal to a fixed string for database storage.
37
* Uses 6 decimal places which matches current DB precision.
0 commit comments