diff --git a/cmd/dcrdata/views/extras.tmpl b/cmd/dcrdata/views/extras.tmpl
index c5ae11b5e..b18893172 100644
--- a/cmd/dcrdata/views/extras.tmpl
+++ b/cmd/dcrdata/views/extras.tmpl
@@ -203,7 +203,13 @@
{{define "decimalParts" -}}
{{- if eq (len .) 4 -}}
- {{ index . 0 }}.{{ index . 1 }}
+
+ {{- if gt (len (index . 1)) 0 -}}
+ {{ index . 0 }}.{{index . 1 }}
+ {{- else -}}
+ {{index . 0 }}
+ {{- end -}}
+
{{- if gt (len (index . 2)) 0 -}}
{{ index . 2 }}
{{- /* trailing zeros */ -}}