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

Unified Diff: runtime/lib/integers.dart

Issue 9416084: Implement more missing pieces in VM's core library. Although it does not seem to make sense to have… (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 10 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 | « no previous file | tests/co19/co19-runtime.status » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/lib/integers.dart
===================================================================
--- runtime/lib/integers.dart (revision 4458)
+++ runtime/lib/integers.dart (working copy)
@@ -127,16 +127,13 @@
}
String toStringAsFixed(int fractionDigits) {
- // Issue 460.
- throw "IntegerImplementation.toStringAsFixed not implemented";
+ return this.toDouble().toStringAsFixed(fractionDigits);
}
String toStringAsExponential(int fractionDigits) {
- // Issue 460.
- throw "IntegerImplementation.toStringAsExponential not implemented";
+ return this.toDouble().toStringAsExponential(fractionDigits);
}
String toStringAsPrecision(int precision) {
- // Issue 460.
- throw "IntegerImplementation.toStringAsPrecision not implemented";
+ return this.toDouble().toStringAsPrecision(precision);
}
String toRadixString(int radix) {
final table = const ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9",
« no previous file with comments | « no previous file | tests/co19/co19-runtime.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698