Skip to content

Commit

Permalink
Minor documentation changes. Bump version to 0.1.4.
Browse files Browse the repository at this point in the history
  • Loading branch information
quentinadam committed Aug 5, 2024
1 parent 2966a3b commit 3a41694
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
20 changes: 10 additions & 10 deletions Decimal.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export default class Decimal {
/**
* Constructs a new Decimal instance, from a `mantissa` and an `exponent`.
*
* Conceptually, a Decimal instance represents the value `mantissa * 10 ** exponent`.
* Conceptually, a Decimal instance represents the value `mantissa * 10 ^ exponent`.
*
* The constructor normalizes the mantissa and exponent, ensuring that the mantissa is as small as possible.
*
Expand All @@ -40,6 +40,15 @@ export default class Decimal {
}
}

/**
* Custom inspection method for Deno which returns the string representation of the Decimal instance.
*
* @returns A string representing the Decimal value.
*/
[Symbol.for('Deno.customInspect')](): string {
return this.toString();
}

/**
* Returns the absolute value of the current Decimal instance.
*
Expand Down Expand Up @@ -524,15 +533,6 @@ export default class Decimal {
}
}

/**
* Custom inspection method for Deno which the string representation of the Decimal instance.
*
* @returns A string representing the Decimal value.
*/
[Symbol.for('Deno.customInspect')](): string {
return this.toString();
}

/**
* A static constant representing the decimal value -1.
*/
Expand Down
2 changes: 1 addition & 1 deletion deno.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@quentinadam/decimal",
"version": "0.1.3",
"version": "0.1.4",
"exports": "./Decimal.ts",
"imports": {
"@quentinadam/assert": "jsr:@quentinadam/assert@^0.1.6"
Expand Down

0 comments on commit 3a41694

Please sign in to comment.