Skip to content

Commit

Permalink
Add the float cast function to workflow gval handlers
Browse files Browse the repository at this point in the history
  • Loading branch information
tjerman committed Jan 20, 2023
1 parent b3d53b9 commit 38b6cb3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions server/pkg/expr/func_num.go
Expand Up @@ -5,6 +5,7 @@ import (
"math/rand"

"github.com/PaesslerAG/gval"
"github.com/cortezaproject/corteza/server/pkg/gvalfnc"
"github.com/pkg/errors"
"github.com/spf13/cast"
)
Expand All @@ -24,6 +25,7 @@ func NumericFunctions() []gval.Language {
gval.Function("average", average),
gval.Function("random", random),
gval.Function("int", toInt64),
gval.Function("float", gvalfnc.CastFloat),
}
}

Expand Down

1 comment on commit 38b6cb3

@skamensky
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@tjerman
Is there documentation for this?

Please sign in to comment.