Type alias Modulo<X, Y>

Modulo<X, Y>: ParseSignFloatNumber<X> extends infer XNumber extends SignFloatNumber
    ? ParseSignFloatNumber<Y> extends infer YNumber extends SignFloatNumber
        ? StringifySignFloat<ModSignFloatNumber<XNumber, YNumber>>
        : never
    : never

Get the remainder of a division operation

Type Parameters

  • X extends NumberLike

    The dividend

  • Y extends NumberLike

    The divisor

    type Example = Modulo<"3.14", "2">
    

Generated using TypeDoc