digit static method

int digit(
  1. double value
)

Returns truncated value represents the current odometer digit.

Implementation

static int digit(double value) => (value % 10).truncate();