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