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

Unified Diff: sdk/lib/core/num.dart

Issue 16285004: Better documentation on Sets and Maps, and more. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Address review comments. Created 7 years, 6 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: sdk/lib/core/num.dart
diff --git a/sdk/lib/core/num.dart b/sdk/lib/core/num.dart
index eb8f82ce4779381c28a5a63de5b411b4081b9333..facfc95b353c56db6767ef7c0955fe9e99c162ff 100644
--- a/sdk/lib/core/num.dart
+++ b/sdk/lib/core/num.dart
@@ -165,8 +165,8 @@ abstract class num implements Comparable<num> {
double toDouble();
/**
- * Converts [this] to a string representation with [fractionDigits] digits
- * after the decimal point.
+ * Converts [this] as a [double] to a string representation with
+ * [fractionDigits] digits after the decimal point.
*
* The parameter [fractionDigits] must be an integer satisfying:
* [:0 <= fractionDigits <= 20:].
@@ -174,8 +174,8 @@ abstract class num implements Comparable<num> {
String toStringAsFixed(int fractionDigits);
/**
- * Converts [this] to a string in decimal exponential notation with
- * [fractionDigits] digits after the decimal point.
+ * Converts [this] as a [double] to a string in decimal exponential notation
+ * with [fractionDigits] digits after the decimal point.
*
* If [fractionDigits] is given then it must be an integer satisfying:
* [:0 <= fractionDigits <= 20:]. Without the parameter the returned string
@@ -184,13 +184,11 @@ abstract class num implements Comparable<num> {
String toStringAsExponential([int fractionDigits]);
/**
- * Converts [this] to a string representation with [precision] significant
- * digits.
+ * Converts [this] as a double to a string representation with [precision]
+ * significant digits.
*
* The parameter [precision] must be an integer satisfying:
* [:1 <= precision <= 21:].
*/
String toStringAsPrecision(int precision);
-
-
}

Powered by Google App Engine
This is Rietveld 408576698