by @kodeazy
How to remove decimal part from flutter number?
-
we have
toInt()
function to convert decimal to number in fluttervoid main() { double decimal = 15.5; int number = decimal.toInt(); print('$number'); }
Output:
5
we have toInt()
function to convert decimal to number in flutter
void main() {
double decimal = 15.5;
int number = decimal.toInt();
print('$number');
}
Output:
5