cafe-utility 33.6.0 → 33.7.0
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/index.d.ts +2 -0
- package/index.js +465 -459
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -685,6 +685,7 @@ export declare class FixedPointNumber {
|
|
|
685
685
|
constructor(value: bigint | string | number, scale: number)
|
|
686
686
|
static cast(other: unknown): FixedPointNumber
|
|
687
687
|
static fromDecimalString(decimalString: string, scale: number): FixedPointNumber
|
|
688
|
+
static fromFloat(value: number, scale: number): FixedPointNumber
|
|
688
689
|
add(other: FixedPointNumber): FixedPointNumber
|
|
689
690
|
subtract(other: FixedPointNumber): FixedPointNumber
|
|
690
691
|
multiply(factor: bigint): FixedPointNumber
|
|
@@ -694,6 +695,7 @@ export declare class FixedPointNumber {
|
|
|
694
695
|
toDecimalString(): string
|
|
695
696
|
toString(): string
|
|
696
697
|
toJSON(): string
|
|
698
|
+
toFloat(): number
|
|
697
699
|
assertSameScale(other: FixedPointNumber): void
|
|
698
700
|
}
|
|
699
701
|
type Playbook<T> = {
|