Remove unnecessary float64() conversion in round().

This commit is contained in:
Julius Volz 2015-02-05 15:14:05 +01:00
parent 982923f0c4
commit 82613527f3
1 changed files with 1 additions and 1 deletions

View File

@ -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)