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

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

Issue 10959067: Add documentation of double and int. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Address review comments. Created 8 years, 2 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
« lib/core/double.dart ('K') | « lib/core/int.dart ('k') | no next file » | 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 // Dart core library. 5 // Dart core library.
6 6
7 /**
8 * All numbers in dart are instances of [num].
9 */
7 abstract class num implements Comparable, Hashable { 10 abstract class num implements Comparable, Hashable {
8 /** Addition operator. */ 11 /** Addition operator. */
9 num operator +(num other); 12 num operator +(num other);
10 13
11 /** Subtraction operator. */ 14 /** Subtraction operator. */
12 num operator -(num other); 15 num operator -(num other);
13 16
14 /** Multiplication operator. */ 17 /** Multiplication operator. */
15 num operator *(num other); 18 num operator *(num other);
16 19
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
110 * 113 *
111 * The [num] in converted to an [int] using [toInt]. That [int] is 114 * The [num] in converted to an [int] using [toInt]. That [int] is
112 * then converted to a string representation with the given 115 * then converted to a string representation with the given
113 * [radix]. In the string representation, lower-case letters are 116 * [radix]. In the string representation, lower-case letters are
114 * used for digits above '9'. 117 * used for digits above '9'.
115 * 118 *
116 * The [radix] argument must be an integer between 2 and 36. 119 * The [radix] argument must be an integer between 2 and 36.
117 */ 120 */
118 String toRadixString(int radix); 121 String toRadixString(int radix);
119 } 122 }
OLDNEW
« lib/core/double.dart ('K') | « lib/core/int.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698