toInt method

int toInt()

Convert to int (truncating decimal part)

Implementation

int toInt() {
  return (_value / pow10(_scale)).toInt();
}