更新研发

This commit is contained in:
hoteas
2022-01-22 16:12:02 +08:00
parent 74ec6e619a
commit 29a84db736
16 changed files with 463 additions and 1357 deletions
+5
View File
@@ -135,6 +135,11 @@ func ObjToFloat64(obj interface{}, e ...*Error) float64 {
err = errors.New("没有合适的转换对象!")
}
}
if math.IsNaN(v) {
err = errors.New("float64 is NaN")
v = 0
}
if len(e) != 0 {
e[0].SetError(err)
}