This commit is contained in:
苏尹岚
2021-03-12 14:03:12 +08:00
parent f210ed13db
commit cb13becfd9
5 changed files with 11 additions and 11 deletions

View File

@@ -559,7 +559,7 @@ func Float32ToInt(f float32) (i int) {
}
func Str2Int(s string) (i int) {
return int(Str2Int64(s))
return int(Str2Int64WithDefault(s, 0))
}
func Float64TwoInt(f float64) (i int) {