| Index: runtime/lib/double.dart
|
| diff --git a/runtime/lib/double.dart b/runtime/lib/double.dart
|
| index c5b2c38156fadf276781a60003f152997041159b..8efe789865fccc5b3150c4336f5db26d05fc7cd5 100644
|
| --- a/runtime/lib/double.dart
|
| +++ b/runtime/lib/double.dart
|
| @@ -104,6 +104,12 @@ class _Double implements double {
|
| return this < 0.0 ? -this : this;
|
| }
|
|
|
| + double get sign {
|
| + if (this > 0.0) return 1.0;
|
| + if (this < 0.0) return -1.0;
|
| + return this; // +/-0.0 or NaN.
|
| + }
|
| +
|
| int round() => roundToDouble().toInt();
|
| int floor() => floorToDouble().toInt();
|
| int ceil () => ceilToDouble().toInt();
|
|
|