-
-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'esm-pr' of https://github.com/royNiladri/js-big-decimal …
…into esm-pr
- Loading branch information
Showing
16 changed files
with
975 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export declare function abs(n: number | string | bigint): string; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
export declare function add(number1: string, number2?: string): string; | ||
export declare function trim(number: string): string; | ||
export declare function pad(number1: string, number2: string): string[]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
import { RoundingModes as Modes } from './roundingModes'; | ||
declare class bigDecimal { | ||
private value; | ||
static RoundingModes: typeof Modes; | ||
private static validate; | ||
constructor(number?: (number | string | bigint)); | ||
getValue(): string; | ||
setValue(num: (number | string | bigint)): void; | ||
static getPrettyValue(number: any, digits: any, separator: any): string; | ||
getPrettyValue(digits: any, separator: any): string; | ||
static round(number: any, precision?: number, mode?: Modes): string; | ||
round(precision?: number, mode?: Modes): bigDecimal; | ||
static abs(number: any): string; | ||
abs(): bigDecimal; | ||
static floor(number: any): any; | ||
floor(): bigDecimal; | ||
static ceil(number: any): any; | ||
ceil(): bigDecimal; | ||
static add(number1: any, number2: any): string; | ||
add(number: bigDecimal): bigDecimal; | ||
static subtract(number1: any, number2: any): string; | ||
subtract(number: bigDecimal): bigDecimal; | ||
static multiply(number1: any, number2: any): string; | ||
multiply(number: bigDecimal): bigDecimal; | ||
static divide(number1: any, number2: any, precision: any): string; | ||
divide(number: bigDecimal, precision: any): bigDecimal; | ||
static modulus(number1: any, number2: any): string; | ||
modulus(number: bigDecimal): bigDecimal; | ||
static compareTo(number1: any, number2: any): 0 | 1 | -1; | ||
compareTo(number: bigDecimal): 0 | 1 | -1; | ||
static negate(number: any): string; | ||
negate(): bigDecimal; | ||
} | ||
export default bigDecimal; |
Oops, something went wrong.