This website works better with JavaScript.
Home
Explore
Help
Sign In
zhimeng
/
medium_ad
Watch
2
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Releases
0
Wiki
Activity
Browse Source
更新
master
huangjiajun
2 months ago
parent
f41df882f2
commit
d4ac76ad82
1 changed files
with
1 additions
and
0 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-0
app/utils/convert.go
+ 1
- 0
app/utils/convert.go
View File
@@ -271,6 +271,7 @@ func ByteToFloat64(bytes []byte) float64 {
}
func Float64ToStr(f float64) string {
f = float64(int(f*100)) / 100
return strconv.FormatFloat(f, 'f', 2, 64)
}
func Float64ToStrPrec1(f float64) string {
Write
Preview
Loading…
Cancel
Save