| 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; | |
| 6 | |
| 7 // TODO: Convert this abstract class into a concrete class double | 5 // TODO: Convert this abstract class into a concrete class double |
| 8 // that uses the patch class functionality to account for the | 6 // that uses the patch class functionality to account for the |
| 9 // different platform implementations. | 7 // different platform implementations. |
| 10 | 8 |
| 11 /** | 9 /** |
| 12 * Representation of Dart doubles containing double specific constants | 10 * Representation of Dart doubles containing double specific constants |
| 13 * and operations and specializations of operations inherited from | 11 * and operations and specializations of operations inherited from |
| 14 * [num]. | 12 * [num]. |
| 15 * | 13 * |
| 16 * The [double] type is contagious. Operations on [double]s return | 14 * The [double] type is contagious. Operations on [double]s return |
| (...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 96 * Accepts the same format as double literals: | 94 * Accepts the same format as double literals: |
| 97 * [: ['+'|'-'] [digit* '.'] digit+ [('e'|'E') ['+'|'-'] digit+] :] | 95 * [: ['+'|'-'] [digit* '.'] digit+ [('e'|'E') ['+'|'-'] digit+] :] |
| 98 * | 96 * |
| 99 * Also recognizes "NaN", "Infinity" and "-Infinity" as inputs and | 97 * Also recognizes "NaN", "Infinity" and "-Infinity" as inputs and |
| 100 * returns the corresponding double value. | 98 * returns the corresponding double value. |
| 101 * | 99 * |
| 102 * Throws a [FormatException] if [source] is not a valid double literal. | 100 * Throws a [FormatException] if [source] is not a valid double literal. |
| 103 */ | 101 */ |
| 104 external static double parse(String source); | 102 external static double parse(String source); |
| 105 } | 103 } |
| OLD | NEW |