Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Esm pr #100

Merged
merged 28 commits into from
Aug 2, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
fd6adb7
Bugfix #84 fixed buggy round
royNiladri Oct 27, 2022
8e4ceec
1.3.11
royNiladri Oct 27, 2022
4173053
Merge branch 'master' of https://github.com/royNiladri/js-big-decimal…
royNiladri Oct 27, 2022
1c3f809
1.3.12
royNiladri Oct 27, 2022
8cc8b69
Merge branch 'master' of https://github.com/royNiladri/js-big-decimal…
royNiladri Dec 3, 2022
0d4bfbe
bugfix #63: fix addition of -0
royNiladri Dec 3, 2022
77df146
build files
royNiladri Dec 3, 2022
b4d6b69
1.3.13
royNiladri Dec 3, 2022
5f0dd80
Merge branch 'master' of https://github.com/royNiladri/js-big-decimal…
royNiladri Dec 3, 2022
e0f3e71
added devcontainer
royNiladri Dec 9, 2022
5209b0b
Merge branch 'master' of https://github.com/royNiladri/js-big-decimal…
royNiladri Jan 3, 2023
f972456
changed gulpfile for macos
royNiladri Jan 3, 2023
753dcc6
added feature 'abs' #83
royNiladri Jan 3, 2023
7739db6
1.3.14
royNiladri Jan 3, 2023
1f3ff60
added abs to readme
royNiladri Jan 3, 2023
3cca3d7
1.3.15
royNiladri Jan 3, 2023
b702008
semantic dependency updates
royNiladri Jan 3, 2023
b02ecf3
Add feature for #32 setValue
Feb 10, 2023
b64c3fa
1.4.0
Feb 10, 2023
db04f4f
Merge branch 'master' of https://github.com/royNiladri/js-big-decimal…
royNiladri Feb 10, 2023
d08e03b
upadted packagelock
royNiladri Feb 10, 2023
e8495dc
1.4.1
royNiladri Feb 10, 2023
1c057f8
Merge branch 'master' of https://github.com/royNiladri/js-big-decimal…
royNiladri Feb 11, 2023
21a6dee
Merge branch 'development' of https://github.com/royNiladri/js-big-de…
royNiladri Aug 2, 2023
b8e3cf0
Add an ESM compatible build to grunt script via Rollup (#99)
NiloCK Aug 2, 2023
e64d2dd
Merge branch 'esm-pr' of https://github.com/royNiladri/js-big-decimal…
royNiladri Aug 2, 2023
52778d3
fixed tests for esm
royNiladri Aug 2, 2023
507c808
2.0.0
royNiladri Aug 2, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions dist/esm/abs.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export declare function abs(n: number | string | bigint): string;
3 changes: 3 additions & 0 deletions dist/esm/add.d.ts
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[];
34 changes: 34 additions & 0 deletions dist/esm/big-decimal.d.ts
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?: number, separator?: string): string;
getPrettyValue(digits?: number, separator?: string): 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?: number): 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;
Loading
Loading