mirror of
https://github.com/MikeMcl/decimal.js.git
synced 2025-12-13 18:12:07 +00:00
Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
1a6e845004 | ||
|
|
01e78ca9c4 |
25
.travis.yml
25
.travis.yml
@ -1,25 +0,0 @@
|
|||||||
language: node_js
|
|
||||||
node_js:
|
|
||||||
- "node"
|
|
||||||
- "23"
|
|
||||||
- "22"
|
|
||||||
- "21"
|
|
||||||
- "20"
|
|
||||||
- "19"
|
|
||||||
- "18"
|
|
||||||
- "17"
|
|
||||||
- "16"
|
|
||||||
- "15"
|
|
||||||
- "14"
|
|
||||||
- "13"
|
|
||||||
- "12"
|
|
||||||
- "11"
|
|
||||||
- "10"
|
|
||||||
- "9"
|
|
||||||
- "8"
|
|
||||||
- "7"
|
|
||||||
- "6"
|
|
||||||
- "5"
|
|
||||||
- "4"
|
|
||||||
|
|
||||||
|
|
||||||
@ -1,3 +1,7 @@
|
|||||||
|
#### 10.6.0
|
||||||
|
* 06/07/2025
|
||||||
|
* Add `BigInt` support to TypeScript definitions
|
||||||
|
|
||||||
#### 10.5.0
|
#### 10.5.0
|
||||||
* 23/01/2025
|
* 23/01/2025
|
||||||
* #216 TypeScript: instantiation without `new` keyword
|
* #216 TypeScript: instantiation without `new` keyword
|
||||||
|
|||||||
@ -5,6 +5,7 @@ An arbitrary-precision Decimal type for JavaScript.
|
|||||||
[](https://www.npmjs.com/package/decimal.js)
|
[](https://www.npmjs.com/package/decimal.js)
|
||||||
[](https://www.npmjs.com/package/decimal.js)
|
[](https://www.npmjs.com/package/decimal.js)
|
||||||
[](https://cdnjs.com/libraries/decimal.js)
|
[](https://cdnjs.com/libraries/decimal.js)
|
||||||
|
[](https://www.jsdelivr.com/package/npm/decimal.js)
|
||||||
|
|
||||||
<br>
|
<br>
|
||||||
|
|
||||||
|
|||||||
4
decimal.d.ts
vendored
4
decimal.d.ts
vendored
@ -36,7 +36,7 @@ export namespace Decimal {
|
|||||||
export type Instance = Decimal;
|
export type Instance = Decimal;
|
||||||
export type Rounding = 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8;
|
export type Rounding = 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8;
|
||||||
export type Modulo = Rounding | 9;
|
export type Modulo = Rounding | 9;
|
||||||
export type Value = string | number | Decimal;
|
export type Value = string | number | bigint | Decimal;
|
||||||
|
|
||||||
// http://mikemcl.github.io/decimal.js/#constructor-properties
|
// http://mikemcl.github.io/decimal.js/#constructor-properties
|
||||||
export interface Config {
|
export interface Config {
|
||||||
@ -63,7 +63,7 @@ export declare class Decimal {
|
|||||||
abs(): Decimal;
|
abs(): Decimal;
|
||||||
|
|
||||||
ceil(): Decimal;
|
ceil(): Decimal;
|
||||||
|
|
||||||
clampedTo(min: Decimal.Value, max: Decimal.Value): Decimal;
|
clampedTo(min: Decimal.Value, max: Decimal.Value): Decimal;
|
||||||
clamp(min: Decimal.Value, max: Decimal.Value): Decimal;
|
clamp(min: Decimal.Value, max: Decimal.Value): Decimal;
|
||||||
|
|
||||||
|
|||||||
4
decimal.global.d.ts
vendored
4
decimal.global.d.ts
vendored
@ -56,7 +56,7 @@ declare global {
|
|||||||
|
|
||||||
type DecimalInstance = Decimal;
|
type DecimalInstance = Decimal;
|
||||||
type DecimalConstructor = typeof Decimal;
|
type DecimalConstructor = typeof Decimal;
|
||||||
type DecimalValue = string | number | Decimal;
|
type DecimalValue = string | number | bigint |Decimal;
|
||||||
type DecimalRounding = 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8;
|
type DecimalRounding = 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8;
|
||||||
type DecimalModulo = DecimalRounding | 9;
|
type DecimalModulo = DecimalRounding | 9;
|
||||||
|
|
||||||
@ -84,7 +84,7 @@ export declare class Decimal {
|
|||||||
abs(): Decimal;
|
abs(): Decimal;
|
||||||
|
|
||||||
ceil(): Decimal;
|
ceil(): Decimal;
|
||||||
|
|
||||||
clampedTo(min: Decimal.Value, max: Decimal.Value): Decimal;
|
clampedTo(min: Decimal.Value, max: Decimal.Value): Decimal;
|
||||||
clamp(min: Decimal.Value, max: Decimal.Value): Decimal;
|
clamp(min: Decimal.Value, max: Decimal.Value): Decimal;
|
||||||
|
|
||||||
|
|||||||
@ -3,7 +3,7 @@
|
|||||||
|
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
* decimal.js v10.5.0
|
* decimal.js v10.6.0
|
||||||
* An arbitrary-precision Decimal type for JavaScript.
|
* An arbitrary-precision Decimal type for JavaScript.
|
||||||
* https://github.com/MikeMcl/decimal.js
|
* https://github.com/MikeMcl/decimal.js
|
||||||
* Copyright (c) 2025 Michael Mclaughlin <M8ch88l@gmail.com>
|
* Copyright (c) 2025 Michael Mclaughlin <M8ch88l@gmail.com>
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
/*!
|
/*!
|
||||||
* decimal.js v10.5.0
|
* decimal.js v10.6.0
|
||||||
* An arbitrary-precision Decimal type for JavaScript.
|
* An arbitrary-precision Decimal type for JavaScript.
|
||||||
* https://github.com/MikeMcl/decimal.js
|
* https://github.com/MikeMcl/decimal.js
|
||||||
* Copyright (c) 2025 Michael Mclaughlin <M8ch88l@gmail.com>
|
* Copyright (c) 2025 Michael Mclaughlin <M8ch88l@gmail.com>
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "decimal.js",
|
"name": "decimal.js",
|
||||||
"description": "An arbitrary-precision Decimal type for JavaScript.",
|
"description": "An arbitrary-precision Decimal type for JavaScript.",
|
||||||
"version": "10.5.0",
|
"version": "10.6.0",
|
||||||
"keywords": [
|
"keywords": [
|
||||||
"arbitrary",
|
"arbitrary",
|
||||||
"precision",
|
"precision",
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user