From 7f2cfdc52aa8b11575bf7c6f7dcc77d6a16b7d74 Mon Sep 17 00:00:00 2001 From: JP Hastings-Spital Date: Fri, 21 Jul 2023 11:01:45 +0100 Subject: [PATCH] Fix GVP rounding issues --- layouts/shortcodes/donations.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layouts/shortcodes/donations.html b/layouts/shortcodes/donations.html index f80d74e4..43769f3b 100644 --- a/layouts/shortcodes/donations.html +++ b/layouts/shortcodes/donations.html @@ -1,5 +1,5 @@ {{ $donations := getJSON "https://api.val.town/v1/run/byjp.donations" }} -

Friends have donated £{{ $donations.totalGBP }} (across {{ $donations.currencyCount }} currencies) to worthy causes in thanks. Thank you!

+

Friends have donated £{{ div (math.Round (mul $donations.totalGBP 100)) 100 }} (across {{ $donations.currencyCount }} currencies) to worthy causes in thanks. Thank you!