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

Unified Diff: samples/solar/solar.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/solar/solar.dart
diff --git a/samples/solar/solar.dart b/samples/solar/solar.dart
index c0b13f12ada59282ed1f2fdc85d83240473238a6..c78e6270570ce274979bd3abe29d26bb3a9ad5c8 100644
--- a/samples/solar/solar.dart
+++ b/samples/solar/solar.dart
@@ -32,7 +32,7 @@ void showFps(num fps) {
fpsAverage = fps * 0.05 + fpsAverage * 0.95;
- query("#notes").text = "${fpsAverage.round().toInt()} fps";
+ query("#notes").text = "${fpsAverage.round()} fps";
}
// TODO: remove this once dart:html Point works cross-platform

Powered by Google App Engine
This is Rietveld 408576698