Skip to content

truncate

Category: Math

Returns the integer part of the input (truncation towards zero)

  • Return type: integer
3.14.truncate()
(-2.9).truncate()
5.truncate()