From 9b1bdf2db8798c024e6fbe84d4144c04f61d80c7 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Sun, 19 Aug 2018 11:59:49 +0200 Subject: FIx floating point evaluation Fixes #2361. --- tests/lang/eval-okay-float.nix | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 tests/lang/eval-okay-float.nix (limited to 'tests/lang/eval-okay-float.nix') diff --git a/tests/lang/eval-okay-float.nix b/tests/lang/eval-okay-float.nix new file mode 100644 index 000000000000..b2702c7b1668 --- /dev/null +++ b/tests/lang/eval-okay-float.nix @@ -0,0 +1,6 @@ +[ + (1.1 + 2.3) + (builtins.add (0.5 + 0.5) (2.0 + 0.5)) + ((0.5 + 0.5) * (2.0 + 0.5)) + ((1.5 + 1.5) / (0.5 * 4.0)) +] -- cgit 1.4.1