Question : flutter round up double
Answered by : guillaume-vignolle
int doubleRoundUp = doubleToRoundUp.ceil();
Source : https://stackoverflow.com/questions/60282826/how-to-round-up-a-double-value-in-flutter | Last Update : Thu, 21 Jan 21
Question : Round double to int flutter
Answered by : theo-kramer
int roundToInt(double meinDouble) { double multiplier = .5; return (multiplier * meinDouble).round();
}
Source : https://stackoverflow.com/questions/20788320/how-to-convert-a-double-to-an-int-in-dart | Last Update : Sun, 21 Aug 22