Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(84)

Unified Diff: samples/third_party/dromaeo/common/Math2.dart

Issue 11748016: Make ~/, round, ceil, floor, truncate return ints. Remove toInt. (Closed) Base URL: https://dart.googlecode.com/svn/experimental/lib_v2/dart
Patch Set: Checked mode fixes. Created 7 years, 12 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: samples/third_party/dromaeo/common/Math2.dart
diff --git a/samples/third_party/dromaeo/common/Math2.dart b/samples/third_party/dromaeo/common/Math2.dart
index 6f713d800b793402ef3fd72c7b3db8dd9416122a..20f08faeab099f799aab687945332c6b05143f5a 100644
--- a/samples/third_party/dromaeo/common/Math2.dart
+++ b/samples/third_party/dromaeo/common/Math2.dart
@@ -27,11 +27,11 @@ class Math2 {
}
static int round(double d) {
- return d.round().toInt();
+ return d.round();
}
static int floor(double d) {
- return d.floor().toInt();
+ return d.floor();
}
// TODO (olonho): use d.toStringAsFixed(precision) when implemented by DartVM

Powered by Google App Engine
This is Rietveld 408576698