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