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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 part of dart.core; 5 part of dart.core;
6 6
7 /** 7 /**
8 * All numbers in dart are instances of [num]. 8 * All numbers in dart are instances of [num].
9 */ 9 */
10 abstract class num implements Comparable<num> { 10 abstract class num implements Comparable<num> {
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after
158 /** 158 /**
159 * Return this [num] as a [double]. 159 * Return this [num] as a [double].
160 * 160 *
161 * If the number is not representable as a [double], an 161 * If the number is not representable as a [double], an
162 * approximation is returned. For numerically large integers, the 162 * approximation is returned. For numerically large integers, the
163 * approximation may be infinite. 163 * approximation may be infinite.
164 */ 164 */
165 double toDouble(); 165 double toDouble();
166 166
167 /** 167 /**
168 * Converts [this] to a string representation with [fractionDigits] digits 168 * Converts [this] as a [double] to a string representation with
169 * after the decimal point. 169 * [fractionDigits] digits after the decimal point.
170 * 170 *
171 * The parameter [fractionDigits] must be an integer satisfying: 171 * The parameter [fractionDigits] must be an integer satisfying:
172 * [:0 <= fractionDigits <= 20:]. 172 * [:0 <= fractionDigits <= 20:].
173 */ 173 */
174 String toStringAsFixed(int fractionDigits); 174 String toStringAsFixed(int fractionDigits);
175 175
176 /** 176 /**
177 * Converts [this] to a string in decimal exponential notation with 177 * Converts [this] as a [double] to a string in decimal exponential notation
178 * [fractionDigits] digits after the decimal point. 178 * with [fractionDigits] digits after the decimal point.
179 * 179 *
180 * If [fractionDigits] is given then it must be an integer satisfying: 180 * If [fractionDigits] is given then it must be an integer satisfying:
181 * [:0 <= fractionDigits <= 20:]. Without the parameter the returned string 181 * [:0 <= fractionDigits <= 20:]. Without the parameter the returned string
182 * uses the shortest number of digits that accurately represent [this]. 182 * uses the shortest number of digits that accurately represent [this].
183 */ 183 */
184 String toStringAsExponential([int fractionDigits]); 184 String toStringAsExponential([int fractionDigits]);
185 185
186 /** 186 /**
187 * Converts [this] to a string representation with [precision] significant 187 * Converts [this] as a double to a string representation with [precision]
188 * digits. 188 * significant digits.
189 * 189 *
190 * The parameter [precision] must be an integer satisfying: 190 * The parameter [precision] must be an integer satisfying:
191 * [:1 <= precision <= 21:]. 191 * [:1 <= precision <= 21:].
192 */ 192 */
193 String toStringAsPrecision(int precision); 193 String toStringAsPrecision(int precision);
194
195
196 } 194 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698