Merge tag 'nektos/v0.2.60'

This commit is contained in:
Jason Song
2024-03-25 16:58:11 +08:00
58 changed files with 1662 additions and 935 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")