aboutsummaryrefslogtreecommitdiffhomepage
path: root/std/Float.bruijn
diff options
context:
space:
mode:
authorMarvin Borner2023-02-28 01:20:46 +0100
committerMarvin Borner2023-02-28 01:20:46 +0100
commit95a6be8c1cd2a2ef75596f9c8ed5f4bb03ca76fe (patch)
tree4b4fa2134c3512f6c7f116c7b652a7993003d1df /std/Float.bruijn
parentcc8486bd3e6d8561507930c75b7fdaadaadd1e85 (diff)
Additions to std/
Diffstat (limited to 'std/Float.bruijn')
-rw-r--r--std/Float.bruijn5
1 files changed, 2 insertions, 3 deletions
diff --git a/std/Float.bruijn b/std/Float.bruijn
index d3fce4e..3d88d6e 100644
--- a/std/Float.bruijn
+++ b/std/Float.bruijn
@@ -4,13 +4,12 @@
:import std/Combinator .
:import std/Number .
-:import std/List .
:import std/Pair P
# generates a float from a normal balanced ternary number
-float! \(P.:) (+0)
+float! \(P.…:…) (+0)
# adds two floating numbers
# TODO: Carry support
# - needed: mod, div (?) -> ternary carry != decimal carry
-add P.zip-with (+)
+add P.zip-with …+…