To round up to the nearest whole number in an absolute sense, use ceil if the number is positive and floor if the number is smaller than 0 . The following function rounds numbers up to the closest integer. Or, use an extension function ( 6.3. roundUpAbs ).
Read moreHow do you use math pi in darts?
First import ‘dart:math’; then use pi/12.0 instead of math. PI/12.0 it should work fine.30 Eyl 2018
Read more