Fix GVP rounding issues

This commit is contained in:
JP Hastings-Spital 2023-07-21 11:01:45 +01:00
parent 8df1a5fb3c
commit 7f2cfdc52a

View file

@ -1,5 +1,5 @@
{{ $donations := getJSON "https://api.val.town/v1/run/byjp.donations" }}
<p>Friends have donated <strong>£{{ $donations.totalGBP }}</strong> (across {{ $donations.currencyCount }} currencies) to worthy causes in thanks. Thank <em>you</em>!</em></p>
<p>Friends have donated <strong>£{{ div (math.Round (mul $donations.totalGBP 100)) 100 }}</strong> (across {{ $donations.currencyCount }} currencies) to worthy causes in thanks. Thank <em>you</em>!</em></p>
<style>
.donate input[type=number] {
width:75px;