Answers for "typecast dart double to int"

1

dart parse int from double

double x=10.7;
int y = x~/2;
Posted by: Guest on August-18-2021
0

dart double to int

double x = 33.33;
int y = x.toInt(); // double to int convert
Posted by: Guest on August-20-2021

Code answers related to "Dart"

Browse Popular Code Answers by Language