@c9up/atom 0.1.4 → 0.1.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/math.d.ts +3 -3
- package/dist/math.js +3 -3
- package/index.win32-x64-msvc.node +0 -0
- package/package.json +1 -1
- package/src/math.ts +3 -3
package/dist/math.d.ts
CHANGED
|
@@ -11,9 +11,9 @@ export declare function divTs(a: string, b: string, precision: number): string;
|
|
|
11
11
|
export declare function cmpTs(a: string, b: string): -1 | 0 | 1;
|
|
12
12
|
/**
|
|
13
13
|
* Align two parsed decimals to the same scale by multiplying the less-precise
|
|
14
|
-
* one by `10^(scaleDelta)`.
|
|
15
|
-
*
|
|
16
|
-
* `
|
|
14
|
+
* one by `10^(scaleDelta)`. Used by the TS arithmetic helpers below
|
|
15
|
+
* (add/sub/cmp/mod). NOTE: `Decimal.ts` does NOT import this — it aligns scales
|
|
16
|
+
* inline via `pow10BigInt`, so this is not a shared-dedup point.
|
|
17
17
|
*/
|
|
18
18
|
export declare function alignScale(a: ParsedDecimal, b: ParsedDecimal): [bigint, bigint, number];
|
|
19
19
|
/** Exact `10^exp` as a `bigint`. Exported — single definition for the whole TS side. */
|
package/dist/math.js
CHANGED
|
@@ -82,9 +82,9 @@ export function cmpTs(a, b) {
|
|
|
82
82
|
}
|
|
83
83
|
/**
|
|
84
84
|
* Align two parsed decimals to the same scale by multiplying the less-precise
|
|
85
|
-
* one by `10^(scaleDelta)`.
|
|
86
|
-
*
|
|
87
|
-
* `
|
|
85
|
+
* one by `10^(scaleDelta)`. Used by the TS arithmetic helpers below
|
|
86
|
+
* (add/sub/cmp/mod). NOTE: `Decimal.ts` does NOT import this — it aligns scales
|
|
87
|
+
* inline via `pow10BigInt`, so this is not a shared-dedup point.
|
|
88
88
|
*/
|
|
89
89
|
export function alignScale(a, b) {
|
|
90
90
|
if (a.scale === b.scale)
|
|
Binary file
|
package/package.json
CHANGED
package/src/math.ts
CHANGED
|
@@ -95,9 +95,9 @@ export function cmpTs(a: string, b: string): -1 | 0 | 1 {
|
|
|
95
95
|
|
|
96
96
|
/**
|
|
97
97
|
* Align two parsed decimals to the same scale by multiplying the less-precise
|
|
98
|
-
* one by `10^(scaleDelta)`.
|
|
99
|
-
*
|
|
100
|
-
* `
|
|
98
|
+
* one by `10^(scaleDelta)`. Used by the TS arithmetic helpers below
|
|
99
|
+
* (add/sub/cmp/mod). NOTE: `Decimal.ts` does NOT import this — it aligns scales
|
|
100
|
+
* inline via `pow10BigInt`, so this is not a shared-dedup point.
|
|
101
101
|
*/
|
|
102
102
|
export function alignScale(
|
|
103
103
|
a: ParsedDecimal,
|