From 39269cc68a32f6e1a7524b00da36a1fe4cc7fb8b Mon Sep 17 00:00:00 2001 From: Eugen Wissner Date: Fri, 21 Aug 2026 00:05:03 +0200 Subject: Implement Single and Double floats --- testsuite/compilable/double_literals.elna | 9 +++++++++ testsuite/compilable/float_literals.elna | 9 --------- testsuite/compilable/single_literals.elna | 9 +++++++++ 3 files changed, 18 insertions(+), 9 deletions(-) create mode 100644 testsuite/compilable/double_literals.elna delete mode 100644 testsuite/compilable/float_literals.elna create mode 100644 testsuite/compilable/single_literals.elna (limited to 'testsuite/compilable') diff --git a/testsuite/compilable/double_literals.elna b/testsuite/compilable/double_literals.elna new file mode 100644 index 0000000..9e8a73d --- /dev/null +++ b/testsuite/compilable/double_literals.elna @@ -0,0 +1,9 @@ +proc f() +var + x: const Double := 3.14 + y: const Double := 1e10 + z: const Double := 4.567e8 + t: const Double := 2.5E-3 +return + +end. diff --git a/testsuite/compilable/float_literals.elna b/testsuite/compilable/float_literals.elna deleted file mode 100644 index 77af6b1..0000000 --- a/testsuite/compilable/float_literals.elna +++ /dev/null @@ -1,9 +0,0 @@ -proc f() -var - x: const Float := 3.14 - y: const Float := 1e10 - z: const Float := 4.567e8 - t: const Float := 2.5E-3 -return - -end. diff --git a/testsuite/compilable/single_literals.elna b/testsuite/compilable/single_literals.elna new file mode 100644 index 0000000..ac03623 --- /dev/null +++ b/testsuite/compilable/single_literals.elna @@ -0,0 +1,9 @@ +proc f() +var + x: const Single := 3.14f + y: const Single := 1e10f + z: const Single := 4.567e8f + t: const Single := 2.5E-3f +return + +end. -- cgit v1.2.3