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