From: Philipp Klaus Date: Mon, 14 Aug 2017 13:04:01 +0000 (+0200) Subject: DASH: fixing numeric value rounding in jinja2 X-Git-Url: https://jspc29.x-matter.uni-frankfurt.de/git/?a=commitdiff_plain;h=2db565854836a78ed8a47085f73cae06888a7145;p=mvd_epics.git DASH: fixing numeric value rounding in jinja2 --- 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 %}