Answers for "convert doble to int in dart"

1

dart to int

void main() { 
   double n1 = 2.0; 
   var value = n1.toInt(); 
   print("Output = ${value}"); 
}
Posted by: Guest on November-13-2021

Code answers related to "convert doble to int in dart"

Code answers related to "Dart"

Browse Popular Code Answers by Language