From 861670ba2ad6fe575de4a31c95c01070ed900391 Mon Sep 17 00:00:00 2001 From: stijn Date: Sat, 16 May 2015 10:54:19 +0200 Subject: py: Implement mp_format_float for doubles and use where appropriate This allows using (almost) the same code for printing floats everywhere, removes the dependency on sprintf and uses just snprintf and applies an msvc-specific fix for snprintf in a single place so nan/inf are now printed correctly. --- tests/float/float1.py | 1 + 1 file changed, 1 insertion(+) (limited to 'tests/float/float1.py') diff --git a/tests/float/float1.py b/tests/float/float1.py index f670a6348..935375c47 100644 --- a/tests/float/float1.py +++ b/tests/float/float1.py @@ -13,6 +13,7 @@ print(float("1e1")) print(float("1e+1")) print(float("1e-1")) print(float("inf")) +print(float("-inf")) print(float("INF")) print(float("infinity")) print(float("INFINITY")) -- cgit v1.2.3