Skip to content

Commit

Permalink
Expose ROUNDING MODES
Browse files Browse the repository at this point in the history
  • Loading branch information
aarr0n committed Nov 6, 2023
1 parent 05ee7d4 commit b6ceff7
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,18 @@ declare module 'vend-number' {
EUCLID = 9
}

export const ROUNDING_MODES = {
ROUND_UP: RoundingMode.ROUND_UP,
ROUND_DOWN: RoundingMode.ROUND_DOWN,
ROUND_CEIL: RoundingMode.ROUND_CEIL,
ROUND_FLOOR: RoundingMode.ROUND_FLOOR,
ROUND_HALF_UP: RoundingMode.ROUND_HALF_UP,
ROUND_HALF_DOWN: RoundingMode.ROUND_HALF_DOWN,
ROUND_HALF_EVEN: RoundingMode.ROUND_HALF_EVEN,
ROUND_HALF_CEIL: RoundingMode.ROUND_HALF_CEIL,
ROUND_HALF_FLOOR: RoundingMode.ROUND_HALF_FLOOR,
} as const

export default class VendNumber extends BigNumber {
constructor (value?: Stringable)

Expand Down

0 comments on commit b6ceff7

Please sign in to comment.