truncate method

int truncate()

Removes the fractional part toward zero.

Implementation

int truncate() => _truncateToInteger().toInt();