formatNumbersToInt method
Implementation
int formatNumbersToInt (String input, int decimals) {
String result = input;
int dotIndex = input.indexOf('.');
try {
result = '${input.substring(0, dotIndex)}${input.substring(dotIndex + 1)}';
} catch (e) {
result = '${input}00';
}
return int.parse(result);
}