Merge branch 'nektos/master' into bump-nektos

This commit is contained in:
Chongyi Zheng
2024-02-16 23:28:10 -05:00
50 changed files with 1103 additions and 357 deletions

View File

@@ -449,7 +449,7 @@ func (impl *interperterImpl) coerceToString(value reflect.Value) reflect.Value {
} else if math.IsInf(value.Float(), -1) {
return reflect.ValueOf("-Infinity")
}
return reflect.ValueOf(fmt.Sprint(value))
return reflect.ValueOf(fmt.Sprintf("%.15G", value.Float()))
case reflect.Slice:
return reflect.ValueOf("Array")