| 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 // Dart core library. | 5 // Dart core library. |
| 6 | 6 |
| 7 /** | 7 /** |
| 8 * All numbers in dart are instances of [num]. | 8 * All numbers in dart are instances of [num]. |
| 9 */ | 9 */ |
| 10 abstract class num implements Comparable { | 10 abstract class num implements Comparable { |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 42 | 42 |
| 43 /** Relational less than or equal operator. */ | 43 /** Relational less than or equal operator. */ |
| 44 bool operator <=(num other); | 44 bool operator <=(num other); |
| 45 | 45 |
| 46 /** Relational greater than operator. */ | 46 /** Relational greater than operator. */ |
| 47 bool operator >(num other); | 47 bool operator >(num other); |
| 48 | 48 |
| 49 /** Relational greater than or equal operator. */ | 49 /** Relational greater than or equal operator. */ |
| 50 bool operator >=(num other); | 50 bool operator >=(num other); |
| 51 | 51 |
| 52 bool isNaN(); | 52 bool get isNaN; |
| 53 | 53 |
| 54 bool isNegative(); | 54 bool get isNegative; |
| 55 | 55 |
| 56 bool isInfinite(); | 56 bool get isInfinite; |
| 57 | 57 |
| 58 /** Returns the absolute value of this [num]. */ | 58 /** Returns the absolute value of this [num]. */ |
| 59 num abs(); | 59 num abs(); |
| 60 | 60 |
| 61 /** Returns the greatest integer value no greater than this [num]. */ | 61 /** Returns the greatest integer value no greater than this [num]. */ |
| 62 num floor(); | 62 num floor(); |
| 63 | 63 |
| 64 /** Returns the least integer value that is no smaller than this [num]. */ | 64 /** Returns the least integer value that is no smaller than this [num]. */ |
| 65 num ceil(); | 65 num ceil(); |
| 66 | 66 |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 113 * | 113 * |
| 114 * The [num] in converted to an [int] using [toInt]. That [int] is | 114 * The [num] in converted to an [int] using [toInt]. That [int] is |
| 115 * then converted to a string representation with the given | 115 * then converted to a string representation with the given |
| 116 * [radix]. In the string representation, lower-case letters are | 116 * [radix]. In the string representation, lower-case letters are |
| 117 * used for digits above '9'. | 117 * used for digits above '9'. |
| 118 * | 118 * |
| 119 * The [radix] argument must be an integer between 2 and 36. | 119 * The [radix] argument must be an integer between 2 and 36. |
| 120 */ | 120 */ |
| 121 String toRadixString(int radix); | 121 String toRadixString(int radix); |
| 122 } | 122 } |
| OLD | NEW |