Created
March 17, 2019 07:55
-
-
Save benznest/ff1734c7414e4c49d983f251fa61b4e0 to your computer and use it in GitHub Desktop.
Floored integer division in Dart
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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