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

Unified Diff: sdk/lib/core/int.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 | « sdk/lib/core/double.dart ('k') | sdk/lib/core/num.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/core/int.dart
diff --git a/sdk/lib/core/int.dart b/sdk/lib/core/int.dart
index 2262574c7dd0ebdc69e2bfe98d33a69b30b4f153..4518b7bd922fd4bb8d89f3778e82f109d17f17f9 100644
--- a/sdk/lib/core/int.dart
+++ b/sdk/lib/core/int.dart
@@ -49,10 +49,10 @@ abstract class int extends num {
/** Returns the absolute value of this integer. */
int abs();
- /** Returns [this]. */
+ /** Returns `this`. */
int round();
- /** Returns [this]. */
+ /** Returns `this`. */
int floor();
/** Returns [this]. */
@@ -61,6 +61,18 @@ abstract class int extends num {
/** Returns [this]. */
int truncate();
+ /** Returns `this.toDouble()`. */
+ double roundToDouble();
+
+ /** Returns `this.toDouble()`. */
+ double floorToDouble();
+
+ /** Returns `this.toDouble()`. */
+ double ceilToDouble();
+
+ /** Returns `this.toDouble()`. */
+ double truncateToDouble();
+
/**
* Returns a representation of this [int] value.
*
« no previous file with comments | « sdk/lib/core/double.dart ('k') | sdk/lib/core/num.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698