Created
March 21, 2019 04:54
-
-
Save AAQ-AND-DEV/bcb2abf57a880d87f7e36cea38398100 to your computer and use it in GitHub Desktop.
some arithmetic operators work
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
void main() { | |
var result = 4 / 2; | |
print(result); | |
print(result.runtimeType); | |
var result2 = 4.0 / 2.0; | |
print(result2); | |
print(result2.runtimeType); | |
var result3 = 4.4 / 2.1; | |
print(result3); | |
print(result3.runtimeType); | |
//modulo | |
var remain = 7 % 3; | |
print(remain); | |
var pi = 3.14; | |
print(pi == 3.14); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment