Skip to content

Instantly share code, notes, and snippets.

@benznest
Created March 17, 2019 07:55
Show Gist options
  • Select an option

  • Save benznest/ff1734c7414e4c49d983f251fa61b4e0 to your computer and use it in GitHub Desktop.

Select an option

Save benznest/ff1734c7414e4c49d983f251fa61b4e0 to your computer and use it in GitHub Desktop.
Floored integer division in Dart
main(){
double a =1111;
double b =33;
int floor = a ~/ b;
// int floor = (a/b).toInt();
print(floor); // 33
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment