Last active
August 29, 2015 14:19
-
-
Save Toasterson/e1cc764faf696e0690c5 to your computer and use it in GitHub Desktop.
Dart cant calculate 007 times 100
This file contains 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() { | |
List<double> vals = const[ | |
0.07, | |
0.08, | |
0.17, | |
0.017, | |
0.072, | |
0.007, | |
0.00725, | |
0.72, | |
0.06, | |
0.6 | |
]; | |
for(double val in vals){ | |
double tmp = val*100; | |
print('Calculation Result $tmp'); | |
} | |
} |
This file contains 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
Observatory listening on http://127.0.0.1:52687 | |
*Calculation Result 7.000000000000001 | |
Calculation Result 8.0 | |
Calculation Result 17.0 | |
*Calculation Result 1.7000000000000002 | |
*Calculation Result 7.199999999999999 | |
*Calculation Result 0.7000000000000001 | |
*Calculation Result 0.7250000000000001 | |
Calculation Result 72.0 | |
Calculation Result 6.0 | |
Calculation Result 60.0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment