Skip to content

Add Decimal.zero and Decimal.one #1110

Closed

Description

Those cannot be constants since the number of fractional digits matters.

class Decimal {
  // Returns 0.0 with `fractionalDigits` fractional digits
  public static zero(fractionalDigits: number): Decimal;

  // Returns 1.0 with `fractionalDigits` fractional digits
  public static one(fractionalDigits: number): Decimal;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions