diff --git a/structs/v2/calculate-process.go b/structs/v2/calculate-process.go index 2816eb8..63073cc 100644 --- a/structs/v2/calculate-process.go +++ b/structs/v2/calculate-process.go @@ -37,7 +37,7 @@ func (c *CalculateProcess) Run(env map[string]float64) (string, float64) { return "", 0 } } - program, err := expr.Compile(c.Process, expr.AsInt()) + program, err := expr.Compile(c.Process, expr.AsFloat64()) if err != nil { return fmt.Sprintf("【%s】 process compile error: %v", c.Name, err), 0 }