intValue method

int intValue(
  1. Unit unit
)

Returns the estimated integral value of this measurable stated in the specified unit as an integer.

Implementation

int intValue(Unit unit) => doubleValue(unit).round();