diff options
| author | Eugen Wissner <belka@caraus.de> | 2026-08-21 00:05:03 +0200 |
|---|---|---|
| committer | Eugen Wissner <belka@caraus.de> | 2026-08-21 00:05:03 +0200 |
| commit | 39269cc68a32f6e1a7524b00da36a1fe4cc7fb8b (patch) | |
| tree | 9558cd6107d60e22127faeddbdeac5031ee2fdbe /testsuite/runnable | |
| parent | 4f77ad5d019618893c59a0f8d5bfa6b98e50a3be (diff) | |
| download | elna-39269cc68a32f6e1a7524b00da36a1fe4cc7fb8b.tar.gz | |
Implement Single and Double floats
Diffstat (limited to 'testsuite/runnable')
| -rw-r--r-- | testsuite/runnable/float_arithmetic.elna | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/testsuite/runnable/float_arithmetic.elna b/testsuite/runnable/float_arithmetic.elna new file mode 100644 index 0000000..73072f2 --- /dev/null +++ b/testsuite/runnable/float_arithmetic.elna @@ -0,0 +1,13 @@ +begin + assert(6.0 / 2.0 = 3.0); + assert(5.0 / 2.0 = 2.5); + assert(3.0 * 0.5 = 1.5); + assert(-3.0 + 1.0 = -2.0); + assert(10.0 - 4.0 = 6.0); + + assert(6.0f / 2.0f = 3.0f); + assert(5.0f / 2.0f = 2.5f); + assert(3.0f * 0.5f = 1.5f); + assert(1.0f / 4.0f = 0.25f); + assert(-3.14f < 0.0f) +end. |
