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

Unified Diff: runtime/vm/double_conversion.h

Issue 8728006: Implement Double.toStringAsFixed. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Break 80+ line. Created 9 years 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
Index: runtime/vm/double_conversion.h
diff --git a/runtime/vm/double_conversion.h b/runtime/vm/double_conversion.h
new file mode 100644
index 0000000000000000000000000000000000000000..a8f91114a055f819c02f949fd517e4369c67edfa
--- /dev/null
+++ b/runtime/vm/double_conversion.h
@@ -0,0 +1,20 @@
+// 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.
+
+#ifndef VM_DOUBLE_CONVERSION_H_
+#define VM_DOUBLE_CONVERSION_H_
+
+#include "vm/globals.h"
+#include "vm/object.h"
+
+namespace dart {
+
+bool DoubleToString(double d, String& result);
+bool DoubleToStringAsFixed(double d, int fraction_digits, String& result);
+bool DoubleToStringAsExponential(double d, int fraction_digits, String& result);
+bool DoubleToStringAsPrecision(double d, int precision, String& result);
+
+} // namespace dart
+
+#endif // VM_DOUBLE_CONVERSION_H_

Powered by Google App Engine
This is Rietveld 408576698