From 82613527f3c0dce7e5c85a88c71ce299c9add283 Mon Sep 17 00:00:00 2001 From: Julius Volz Date: Thu, 5 Feb 2015 15:14:05 +0100 Subject: [PATCH] Remove unnecessary float64() conversion in round(). --- rules/ast/functions.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rules/ast/functions.go b/rules/ast/functions.go index 0df09bfbb..531a6f684 100644 --- a/rules/ast/functions.go +++ b/rules/ast/functions.go @@ -306,7 +306,7 @@ func roundImpl(timestamp clientmodel.Timestamp, args []Node) interface{} { if len(args) >= 2 { places = float64(args[1].(ScalarNode).Eval(timestamp)) } - pow := math.Pow(10, float64(places)) + pow := math.Pow(10, places) n := args[0].(VectorNode) vector := n.Eval(timestamp)