From bc3c7d51a2efe5f0ad85667a8f9636f13941d577 Mon Sep 17 00:00:00 2001 From: xuri Date: Wed, 17 Nov 2021 00:25:36 +0800 Subject: ref #65: new formula function PRICE - fix COUPPCD result accuracy issue - update close spreadsheet example in documentation and README --- styles.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'styles.go') diff --git a/styles.go b/styles.go index 0ae9e51..183211b 100644 --- a/styles.go +++ b/styles.go @@ -3137,7 +3137,7 @@ func ThemeColor(baseColor string, tint float64) string { if tint == 0 { return "FF" + baseColor } - r, _ := strconv.ParseUint(baseColor[0:2], 16, 64) + r, _ := strconv.ParseUint(baseColor[:2], 16, 64) g, _ := strconv.ParseUint(baseColor[2:4], 16, 64) b, _ := strconv.ParseUint(baseColor[4:6], 16, 64) var h, s, l float64 -- cgit v1.2.1