@ztimson/utils 0.28.12 → 0.28.14
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/color.d.ts +15 -2
- package/dist/index.cjs +158 -31
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +158 -31
- package/dist/index.mjs.map +1 -1
- package/dist/math.d.ts +2 -1
- package/package.json +1 -1
package/dist/math.d.ts
CHANGED
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
* @return {string} Fraction with remainder
|
|
12
12
|
*/
|
|
13
13
|
export declare function dec2Frac(num: number, maxDen?: number): string;
|
|
14
|
+
export declare function dec2Hex(num: number): string;
|
|
14
15
|
/**
|
|
15
16
|
* Convert fraction to decimal number
|
|
16
17
|
*
|
|
@@ -22,7 +23,7 @@ export declare function dec2Frac(num: number, maxDen?: number): string;
|
|
|
22
23
|
* @param {string} frac Fraction to convert
|
|
23
24
|
* @return {number} Faction as a decimal
|
|
24
25
|
*/
|
|
25
|
-
export declare function
|
|
26
|
+
export declare function frac2Dec(frac: string): number;
|
|
26
27
|
/**
|
|
27
28
|
* Add a suffix to a number:
|
|
28
29
|
* 1 = 1st
|