From 717f8aacc2fd18fce0146c911be4a7c47ae2c8da Mon Sep 17 00:00:00 2001 From: Stephan Seitz <stephan.seitz@fau.de> Date: Mon, 5 Aug 2019 20:57:29 +0200 Subject: [PATCH] Print double literals always with . --- pystencils/backends/cbackend.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pystencils/backends/cbackend.py b/pystencils/backends/cbackend.py index 6ffd849d..8259dffc 100644 --- a/pystencils/backends/cbackend.py +++ b/pystencils/backends/cbackend.py @@ -378,6 +378,9 @@ class CustomSympyPrinter(CCodePrinter): res += ".0f" else: res += "f" + else: + if '.' not in res: + res += "." return res else: return res -- GitLab