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 library dart._internal; | 5 library dart._internal; |
6 | 6 |
7 import 'dart:collection'; | 7 import 'dart:collection'; |
8 | 8 |
9 import 'dart:core' hide Symbol; | 9 import 'dart:core' hide Symbol; |
10 import 'dart:core' as core; | 10 import 'dart:core' as core; |
11 import 'dart:math' show Random; | 11 import 'dart:math' show Random; |
12 | 12 |
13 part 'iterable.dart'; | 13 part 'iterable.dart'; |
14 part 'list.dart'; | 14 part 'list.dart'; |
15 part 'lists.dart'; | 15 part 'lists.dart'; |
16 part 'print.dart'; | 16 part 'print.dart'; |
17 part 'sort.dart'; | 17 part 'sort.dart'; |
18 part 'symbol.dart'; | 18 part 'symbol.dart'; |
| 19 |
| 20 // Powers of 10 up to 10^22 are representable as doubles. |
| 21 // Powers of 10 above that are only approximate due to lack of precission. |
| 22 // Used by double-parsing. |
| 23 const POWERS_OF_TEN = const [ |
| 24 1.0, /* 0 */ |
| 25 10.0, |
| 26 100.0, |
| 27 1000.0, |
| 28 10000.0, |
| 29 100000.0, /* 5 */ |
| 30 1000000.0, |
| 31 10000000.0, |
| 32 100000000.0, |
| 33 1000000000.0, |
| 34 10000000000.0, /* 10 */ |
| 35 100000000000.0, |
| 36 1000000000000.0, |
| 37 10000000000000.0, |
| 38 100000000000000.0, |
| 39 1000000000000000.0, /* 15 */ |
| 40 10000000000000000.0, |
| 41 100000000000000000.0, |
| 42 1000000000000000000.0, |
| 43 10000000000000000000.0, |
| 44 100000000000000000000.0, /* 20 */ |
| 45 1000000000000000000000.0, |
| 46 10000000000000000000000.0, |
| 47 ]; |
OLD | NEW |