| 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; | 5 part of dart.core; |
| 6 | 6 |
| 7 // TODO: Convert this abstract class into a concrete class double | 7 // TODO: Convert this abstract class into a concrete class double |
| 8 // that uses the patch class functionality to account for the | 8 // that uses the patch class functionality to account for the |
| 9 // different platform implementations. | 9 // different platform implementations. |
| 10 | 10 |
| 11 /** | 11 /** |
| 12 * Representation of Dart doubles containing double specific constants | 12 * Representation of Dart doubles containing double specific constants |
| 13 * and operations and specializations of operations inherited from | 13 * and operations and specializations of operations inherited from |
| 14 * [num]. | 14 * [num]. Dart doubles are 64-bit floating-point numbers as specified in the |
| 15 * IEEE 754 standard. |
| 15 * | 16 * |
| 16 * The [double] type is contagious. Operations on [double]s return | 17 * The [double] type is contagious. Operations on [double]s return |
| 17 * [double] results. | 18 * [double] results. |
| 19 * |
| 20 * It is a compile-time error for a class to attempt to extend or implement |
| 21 * double. |
| 18 */ | 22 */ |
| 19 abstract class double extends num { | 23 abstract class double extends num { |
| 20 static const double NAN = 0.0 / 0.0; | 24 static const double NAN = 0.0 / 0.0; |
| 21 static const double INFINITY = 1.0 / 0.0; | 25 static const double INFINITY = 1.0 / 0.0; |
| 22 static const double NEGATIVE_INFINITY = -INFINITY; | 26 static const double NEGATIVE_INFINITY = -INFINITY; |
| 23 static const double MIN_POSITIVE = 5e-324; | 27 static const double MIN_POSITIVE = 5e-324; |
| 24 static const double MAX_FINITE = 1.7976931348623157e+308; | 28 static const double MAX_FINITE = 1.7976931348623157e+308; |
| 25 | 29 |
| 26 double remainder(num other); | 30 double remainder(num other); |
| 27 | 31 |
| (...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 159 * "0." | 163 * "0." |
| 160 * ".0" | 164 * ".0" |
| 161 * "-1.e3" | 165 * "-1.e3" |
| 162 * "1234E+7" | 166 * "1234E+7" |
| 163 * "+.12e-9" | 167 * "+.12e-9" |
| 164 * "-NaN" | 168 * "-NaN" |
| 165 */ | 169 */ |
| 166 external static double parse(String source, | 170 external static double parse(String source, |
| 167 [double handleError(String source)]); | 171 [double handleError(String source)]); |
| 168 } | 172 } |
| OLD | NEW |