Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
F
fuchsia.googlesource.com-third_party-google-double-conversion
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
fuchsia-mirror
fuchsia.googlesource.com-third_party-google-double-conversion
Commits
b28450f3
Commit
b28450f3
authored
13 years ago
by
Florian Loitsch
Browse files
Options
Downloads
Patches
Plain Diff
DoubleToAscii's input must not be special.
In SHORTEST_SINGLE this restriction also applies to static_cast<float>(v).
parent
c3c8b8ad
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/double-conversion.h
+5
-1
5 additions, 1 deletion
src/double-conversion.h
with
5 additions
and
1 deletion
src/double-conversion.h
+
5
−
1
View file @
b28450f3
...
...
@@ -295,7 +295,10 @@ class DoubleToStringConverter {
static
const
int
kBase10MaximalLength
=
17
;
// Converts the given double 'v' to ascii. 'v' must not be NaN, +Infinity, or
// -Infinity.
// -Infinity. In SHORTEST_SINGLE-mode this restriction also applies to 'v'
// after it has been casted to a single-precision float. That is, in this
// mode static_cast<float>(v) must not be NaN, +Infinity or -Infinity.
//
// The result should be interpreted as buffer * 10^(point-length).
//
// The output depends on the given mode:
...
...
@@ -306,6 +309,7 @@ class DoubleToStringConverter {
// 'v'. If there are two at the same distance, than the one farther away
// from 0 is chosen (halfway cases - ending with 5 - are rounded up).
// In this mode the 'requested_digits' parameter is ignored.
// - SHORTEST_SINGLE: same as SHORTEST but with single-precision.
// - FIXED: produces digits necessary to print a given number with
// 'requested_digits' digits after the decimal point. The produced digits
// might be too short in which case the caller has to fill the remainder
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment