Type alias Divide<Dividend, Divisor>

Divide<Dividend, Divisor>: ParseSignFloatNumber<Dividend> extends infer A extends SignFloatNumber
    ? ParseSignFloatNumber<Divisor> extends infer B extends SignFloatNumber
        ? StringifySignFloat<DivideSignFloatNumber<A, B>>
        : never
    : never

Divide two numbers

Type Parameters

  • Dividend extends NumberLike

    The dividend

  • Divisor extends NumberLike

    The divisor

    type Example = Divide<"5", "2">
    

Generated using TypeDoc