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

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

Issue 12288040: Reapply "Make Comparable generic." (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fix problems. Created 7 years, 10 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/date_time.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 */ 9 */
10 abstract class num implements Comparable { 10 abstract class num implements Comparable<num> {
11 /** Addition operator. */ 11 /** Addition operator. */
12 num operator +(num other); 12 num operator +(num other);
13 13
14 /** Subtraction operator. */ 14 /** Subtraction operator. */
15 num operator -(num other); 15 num operator -(num other);
16 16
17 /** Multiplication operator. */ 17 /** Multiplication operator. */
18 num operator *(num other); 18 num operator *(num other);
19 19
20 /** Euclidean modulo operator. */ 20 /** Euclidean modulo operator. */
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
122 * Converts [this] to a string representation with [precision] significant 122 * Converts [this] to a string representation with [precision] significant
123 * digits. 123 * digits.
124 * 124 *
125 * The parameter [precision] must be an integer satisfying: 125 * The parameter [precision] must be an integer satisfying:
126 * [:1 <= precision <= 21:]. 126 * [:1 <= precision <= 21:].
127 */ 127 */
128 String toStringAsPrecision(int precision); 128 String toStringAsPrecision(int precision);
129 129
130 130
131 } 131 }
OLDNEW
« no previous file with comments | « sdk/lib/core/date_time.dart ('k') | sdk/lib/core/string.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698