void main() {
// declare an integer
int num1 = 10;
// declare a double value
double num2 = 10.50;
// print the values
print(num1);
print(num2);
}
double x=10.7;
int y = x~/2;
double x = 33.33;
int y = x.toInt(); // double to int convert
int calc_ranks(ranks) {
double multiplier = .5;
return (multiplier * ranks).round();
}
int calc_ranks(ranks) {
double multiplier = .5;
return (multiplier * ranks).round();
}