digitCount property
int
get
digitCount
Number of decimal digits (ignores sign).
Implementation
int get digitCount => this == 0 ? 1 : (log(abs()) / ln10).floor() + 1;
Number of decimal digits (ignores sign).
int get digitCount => this == 0 ? 1 : (log(abs()) / ln10).floor() + 1;