Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
rym-util
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
zhengqiuyun
rym-util
Commits
c49e6248
Commit
c49e6248
authored
Oct 19, 2022
by
zhengqiuyun86
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
数组包含封装
parent
f3e80479
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
0 deletions
+13
-0
FloatUtil.go
util/FloatUtil.go
+13
-0
No files found.
util/FloatUtil.go
0 → 100644
View file @
c49e6248
package
util
import
"strconv"
//FormatFloat64 将多余的浮点格式化
func
FormatFloat64
(
f
float64
)
string
{
return
strconv
.
FormatFloat
(
f
,
'f'
,
-
1
,
64
)
}
//FormatFloat32 将多余的浮点格式化
func
FormatFloat32
(
f
float32
)
string
{
return
strconv
.
FormatFloat
(
float64
(
f
),
'f'
,
-
1
,
32
)
}
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