Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1433)

Unified Diff: corelib/src/num.dart

Issue 10890030: Move core and coreimpl from corelib/ to lib/core and lib/coreimpl. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Rebase. Created 8 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « corelib/src/map.dart ('k') | corelib/src/object.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: corelib/src/num.dart
diff --git a/corelib/src/num.dart b/corelib/src/num.dart
deleted file mode 100644
index fa068404c8f2c717130f1b7a09403cccc1b79a04..0000000000000000000000000000000000000000
--- a/corelib/src/num.dart
+++ /dev/null
@@ -1,48 +0,0 @@
-// Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
-// for details. All rights reserved. Use of this source code is governed by a
-// BSD-style license that can be found in the LICENSE file.
-
-// Dart core library.
-
-abstract class num implements Comparable, Hashable {
- factory num._uninstantiable() {
- throw const UnsupportedOperationException(
- "abstract class num cannot be instantiated");
- }
- // Arithmetic operations.
- abstract num operator +(num other);
- abstract num operator -(num other);
- abstract num operator *(num other);
- abstract num operator %(num other);
- abstract double operator /(num other);
- // Truncating division.
- abstract num operator ~/(num other);
- // The unary '-' operator.
- abstract num operator negate();
- abstract num remainder(num other);
-
- // Relational operations.
- abstract bool operator <(num other);
- abstract bool operator <=(num other);
- abstract bool operator >(num other);
- abstract bool operator >=(num other);
-
- // Predicates.
- abstract bool isNaN();
- abstract bool isNegative();
- abstract bool isInfinite();
-
- abstract num abs();
- abstract num round();
- abstract num floor();
- abstract num ceil();
- abstract num truncate();
-
- abstract int toInt();
- abstract double toDouble();
-
- abstract String toStringAsFixed(int fractionDigits);
- abstract String toStringAsExponential(int fractionDigits);
- abstract String toStringAsPrecision(int precision);
- abstract String toRadixString(int radix);
-}
« no previous file with comments | « corelib/src/map.dart ('k') | corelib/src/object.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698