Answers for "double in dart"

1

dart int double

void main() {
   // declare an integer
   int num1 = 10;             
     
   // declare a double value
   double num2 = 10.50;  

   // print the values
   print(num1);
   print(num2);
}
Posted by: Guest on November-13-2021
-1

double to int in dart

int calc_ranks(ranks) {
    double multiplier = .5;
    return (multiplier * ranks).round();
}
Posted by: Guest on November-23-2020

Code answers related to "double in dart"

Code answers related to "Dart"

Browse Popular Code Answers by Language