Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • Dec

Index

Constructors

Properties

Methods

Constructors

constructor

  • new Dec(int: bigInteger.BigNumber | Int, prec?: number): Dec
  • Create a new Dec from integer with decimal place at prec

    Parameters

    • int: bigInteger.BigNumber | Int

      Parse a number | bigInteger | string into a Dec. If int is string and contains dot(.), prec is ignored and automatically calculated.

    • Default value prec: number = 0

      Precision

    Returns Dec

Properties

Static precision

precision: bigInteger.BigInteger = bigInteger(18)

Methods

marshalAmino

  • marshalAmino(): string

marshalJSON

  • marshalJSON(): string

Generated using TypeDoc