From 2db565854836a78ed8a47085f73cae06888a7145 Mon Sep 17 00:00:00 2001 From: Philipp Klaus Date: Mon, 14 Aug 2017 15:04:01 +0200 Subject: [PATCH] DASH: fixing numeric value rounding in jinja2 --- python_suite/dashboard/views/pv_overview.jinja2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python_suite/dashboard/views/pv_overview.jinja2 b/python_suite/dashboard/views/pv_overview.jinja2 index 716f262..d1e3a28 100644 --- a/python_suite/dashboard/views/pv_overview.jinja2 +++ b/python_suite/dashboard/views/pv_overview.jinja2 @@ -38,7 +38,7 @@ {% else %} {% if PV.precision is number %} - {{ PV.value|round(PV.precision) }} + {{ ("%."+PV.precision|string +"f") % PV.value }} {% else %} {{ PV.value }} {% endif %} -- 2.43.0