Mayson Monorepo Documentation
    Preparing search index...

    Function decimalToString

    • Convert a Decimal to a string representation. Uses toFixed() to ensure consistent string output without scientific notation.

      Parameters

      • decimal: Decimal

        The Decimal instance to convert

      Returns string

      String representation of the decimal value

      const d = new Decimal("0.000000001");
      console.log(decimalToString(d)); // "0.000000001" (not "1e-9")