OLD | NEW |
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 { |
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 Loading... |
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 } |
OLD | NEW |