uom-types - v0.0.0-development
    Preparing search index...

    Function sub

    • Subtract one value from another with the same units.

      Type Parameters

      • T extends number

      Parameters

      • a: OperationIO<T>
      • b: OperationIO<T>

      Returns OperationIO<T>

      a - b

    • Subtract one value from another with the same units.

      Type Parameters

      • T extends number

      Parameters

      • b: OperationIO<T>

      Returns (a: OperationIO<T>) => OperationIO<T>

      (a) => a - b