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

Unified Diff: samples/third_party/dromaeo/Dromaeo.dart

Issue 12317107: ceil/floor/truncate/round return integers. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Reupload due to error3 Created 7 years, 9 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
« no previous file with comments | « samples/swarm/swarm_ui_lib/view/PagedViews.dart ('k') | samples/third_party/dromaeo/common/Math2.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: samples/third_party/dromaeo/Dromaeo.dart
diff --git a/samples/third_party/dromaeo/Dromaeo.dart b/samples/third_party/dromaeo/Dromaeo.dart
index 8f7593f0993ac91ed727b9a28fa282c3183d22a4..2428f39ae06175acb0cd23106ebd88b4988714d0 100644
--- a/samples/third_party/dromaeo/Dromaeo.dart
+++ b/samples/third_party/dromaeo/Dromaeo.dart
@@ -155,8 +155,8 @@ class Dromaeo {
// TODO(jat): Remove void type below. Bug 5269037.
void _updateTime() {
- final mins = (estimatedTimeSecs / 60).floor().toInt();
- final secs = (estimatedTimeSecs - mins * 60).round().toInt();
+ final mins = (estimatedTimeSecs / 60).floor();
+ final secs = (estimatedTimeSecs - mins * 60).round();
final secsAsString = '${(secs < 10 ? "0" : "")}$secs';
_byId('left').innerHtml = '${mins}:${secsAsString}';
« no previous file with comments | « samples/swarm/swarm_ui_lib/view/PagedViews.dart ('k') | samples/third_party/dromaeo/common/Math2.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698