From 9d6128acdccb463edfe9a3b7dbf86417643104bb Mon Sep 17 00:00:00 2001 From: Dave Hylands Date: Mon, 31 Aug 2015 15:43:31 -0700 Subject: stmhal: fix single precision float printing error Fixes #1435. --- tests/float/float_array.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'tests/float/float_array.py') diff --git a/tests/float/float_array.py b/tests/float/float_array.py index c0f2c587cf..033877db3c 100644 --- a/tests/float/float_array.py +++ b/tests/float/float_array.py @@ -12,3 +12,5 @@ def test(a): test(array('f')) test(array('d')) + +print('{:.4f}'.format(array('f', b'\xcc\xcc\xcc=')[0])) -- cgit v1.2.3