Index: src/dtoa.h |
=================================================================== |
--- src/dtoa.h (revision 5786) |
+++ src/dtoa.h (working copy) |
@@ -72,8 +72,10 @@ |
// which case the caller has to fill the missing digits with '0's. |
// Halfway cases are again rounded away from 0. |
// 'DoubleToAscii' expects the given buffer to be big enough to hold all digits |
-// and a terminating null-character. |
-bool DoubleToAscii(double v, DtoaMode mode, int requested_digits, |
+// and a terminating null-character. In SHORTEST-mode it expects a buffer of |
+// at least kBase10MaximalLength + 1 and otherwise the requested_digits |
William Hesse
2010/11/15 15:48:30
+ 1. Otherwise, the size of the output is limited
Florian Loitsch
2010/11/16 14:32:06
Done.
|
+// parameter (+ 1) limits the size of the output. |
+void DoubleToAscii(double v, DtoaMode mode, int requested_digits, |
Vector<char> buffer, int* sign, int* length, int* point); |
} } // namespace v8::internal |