Function trunc

Returns the integer part of a number by removing any fractional digits.

  • Parameters

    • value: number

    Returns number