Type alias Floor<T>

Floor<T>: ParseSignFloatNumber<T> extends infer Number extends SignFloatNumber
    ? StringifySignFloat<FloorSignFloatNumber<Number>>
    : never

Round a number down to the nearest integer

Type Parameters

  • T extends NumberLike

    The number to floor

    type Example = Floor<"3.14">
    

Generated using TypeDoc