ts-data-forge
    Preparing search index...

    Function mul

    • Multiplies two numbers, returning the tightest sound branded result type.

      The sign follows the usual product rule (e.g. negative times negative is positive); the level is preserved (with SafeInt widening to Int). No clamping.

      Type Parameters

      • A extends number
      • B extends number

      Parameters

      • a: A

        The first factor.

      • b: B

        The second factor.

      Returns MulResult<A, B>

      a * b, typed as the tightest branded type guaranteed to contain it.