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

Side by Side Diff: sdk/lib/core/num.dart

Issue 23087004: Improve DartDocs for dart:core classes that may not be extended or implemented. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: use an abstract bool.toString() Created 7 years, 4 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
« no previous file with comments | « sdk/lib/core/null.dart ('k') | sdk/lib/core/string.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 *
10 * It is a compile-time error for any type other than the types int and double
11 * to attempt to extend or implement num.
9 */ 12 */
10 abstract class num implements Comparable<num> { 13 abstract class num implements Comparable<num> {
11 /** Addition operator. */ 14 /** Addition operator. */
12 num operator +(num other); 15 num operator +(num other);
13 16
14 /** Subtraction operator. */ 17 /** Subtraction operator. */
15 num operator -(num other); 18 num operator -(num other);
16 19
17 /** Multiplication operator. */ 20 /** Multiplication operator. */
18 num operator *(num other); 21 num operator *(num other);
(...skipping 246 matching lines...) Expand 10 before | Expand all | Expand 10 after
265 * 268 *
266 * Note: the conversion may round the output if the returned string 269 * Note: the conversion may round the output if the returned string
267 * is accurate enough to uniquely identify the input-number. 270 * is accurate enough to uniquely identify the input-number.
268 * For example the most precise representation of the [double] `9e59` equals 271 * For example the most precise representation of the [double] `9e59` equals
269 * `"899999999999999918767229449717619953810131273674690656206848"`, but 272 * `"899999999999999918767229449717619953810131273674690656206848"`, but
270 * this method returns the shorter (but still uniquely identifying) `"9e59"`. 273 * this method returns the shorter (but still uniquely identifying) `"9e59"`.
271 * 274 *
272 */ 275 */
273 String toString(); 276 String toString();
274 } 277 }
OLDNEW
« no previous file with comments | « sdk/lib/core/null.dart ('k') | sdk/lib/core/string.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698