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 /** | 7 /** |
6 * Representation of Dart integers containing integer specific | 8 * Representation of Dart integers containing integer specific |
7 * operations and specialization of operations inherited from [num]. | 9 * operations and specialization of operations inherited from [num]. |
8 * | 10 * |
9 * Integers can be arbitrarily large in Dart. | 11 * Integers can be arbitrarily large in Dart. |
10 * | 12 * |
11 * *Note however, that when compiling to JavaScript, integers are | 13 * *Note however, that when compiling to JavaScript, integers are |
12 * implemented as JavaScript numbers. When compiling to JavaScript, | 14 * implemented as JavaScript numbers. When compiling to JavaScript, |
13 * integers are therefore restricted to 53 significant bits because | 15 * integers are therefore restricted to 53 significant bits because |
14 * all JavaScript numbers are double-precision floating point | 16 * all JavaScript numbers are double-precision floating point |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
70 /** | 72 /** |
71 * Parse [source] as an integer literal and return its value. | 73 * Parse [source] as an integer literal and return its value. |
72 * | 74 * |
73 * Accepts "0x" prefix for hexadecimal numbers, otherwise defaults | 75 * Accepts "0x" prefix for hexadecimal numbers, otherwise defaults |
74 * to base-10. | 76 * to base-10. |
75 * | 77 * |
76 * Throws a [FormatException] if [source] is not a valid integer literal. | 78 * Throws a [FormatException] if [source] is not a valid integer literal. |
77 */ | 79 */ |
78 external static int parse(String source); | 80 external static int parse(String source); |
79 } | 81 } |
OLD | NEW |