toInt method

int toInt()

Parses this string as an integer, truncating any fractional component.

Throws FormatException if the underlying numeric parse fails.

Implementation

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