toInt method

int toInt()

Truncates the fractional part and returns the integer component.

Implementation

int toInt() => toNum().toInt();