countSignificants method
Implementation
int countSignificants(String value) {
final int i = value.indexOf('.');
if (i > -1) {
value = delete(value, i, 1);
}
while (value.isNotEmpty && value[0] == '0') {
value = value.substring(1);
}
return value.length;
}