convert from int to double on dart code example
Example 1: dart convert int to double
int intVar = 5;
double doubleVar = intVar.toDouble();
Example 2: double to int in dart
int calc_ranks(ranks) {
double multiplier = .5;
return (multiplier * ranks).round();
}