From e4c410621dee92f05221d011764a20e8eefc93fe Mon Sep 17 00:00:00 2001 From: Will Charczuk Date: Wed, 13 Jul 2016 16:11:31 -0700 Subject: [PATCH] percentage/percent --- util.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/util.go b/util.go index 4fefa5c..15e02fe 100644 --- a/util.go +++ b/util.go @@ -136,8 +136,8 @@ func Seq(start, end float64, steps ...float64) []float64 { return values } -// PercentageDifference computes the percentage difference between two values. +// PercentDifference computes the percentage difference between two values. // The formula is (v2-v1)/v1. -func PercentageDifference(v1, v2 float64) float64 { +func PercentDifference(v1, v2 float64) float64 { return (v2 - v1) / v1 }