Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
go
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
go
Commits
36397814
Commit
36397814
authored
Dec 19, 2011
by
Ian Lance Taylor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
strconv: remove obsolete comment.
R=r, rsc CC=golang-dev
https://golang.org/cl/5490078
parent
21af3d86
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
5 deletions
+1
-5
src/pkg/strconv/ftoa.go
src/pkg/strconv/ftoa.go
+1
-5
No files found.
src/pkg/strconv/ftoa.go
View file @
36397814
...
@@ -40,11 +40,7 @@ var float64info = floatInfo{52, 11, -1023}
...
@@ -40,11 +40,7 @@ var float64info = floatInfo{52, 11, -1023}
// For 'e', 'E', and 'f' it is the number of digits after the decimal point.
// For 'e', 'E', and 'f' it is the number of digits after the decimal point.
// For 'g' and 'G' it is the total number of digits.
// For 'g' and 'G' it is the total number of digits.
// The special precision -1 uses the smallest number of digits
// The special precision -1 uses the smallest number of digits
// necessary such that Atof32 will return f exactly.
// necessary such that ParseFloat will return f exactly.
//
// Ftoa32(f) is not the same as Ftoa64(float32(f)),
// because correct rounding and the number of digits
// needed to identify f depend on the precision of the representation.
func
FormatFloat
(
f
float64
,
fmt
byte
,
prec
,
bitSize
int
)
string
{
func
FormatFloat
(
f
float64
,
fmt
byte
,
prec
,
bitSize
int
)
string
{
return
string
(
genericFtoa
(
make
([]
byte
,
0
,
max
(
prec
+
4
,
24
)),
f
,
fmt
,
prec
,
bitSize
))
return
string
(
genericFtoa
(
make
([]
byte
,
0
,
max
(
prec
+
4
,
24
)),
f
,
fmt
,
prec
,
bitSize
))
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment