Skip to content

Instantly share code, notes, and snippets.

@AAQ-AND-DEV
Created March 21, 2019 04:54
Show Gist options
  • Save AAQ-AND-DEV/bcb2abf57a880d87f7e36cea38398100 to your computer and use it in GitHub Desktop.
Save AAQ-AND-DEV/bcb2abf57a880d87f7e36cea38398100 to your computer and use it in GitHub Desktop.
some arithmetic operators work
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