aboutsummaryrefslogtreecommitdiffhomepage
path: root/std/Float.bruijn
diff options
context:
space:
mode:
authorMarvin Borner2023-04-08 17:14:54 +0200
committerMarvin Borner2023-04-08 17:14:54 +0200
commit67b6713b221a25763d1c08e12e8b715d432db5f8 (patch)
tree40843861e9aaacc47beba57479c0b78bcfea8f08 /std/Float.bruijn
parent5e5069c5228f2cd39de38ace9134f57293cc7e5d (diff)
Various improvements to standard library docs
Diffstat (limited to 'std/Float.bruijn')
-rw-r--r--std/Float.bruijn4
1 files changed, 4 insertions, 0 deletions
diff --git a/std/Float.bruijn b/std/Float.bruijn
index 3d88d6e..d2ed080 100644
--- a/std/Float.bruijn
+++ b/std/Float.bruijn
@@ -2,10 +2,14 @@
# Arbitrary-precision floating-point arithmetic implementation using
# (+3.14) = pair (+3) (+14)
+# This is completely WIP and only intended as a proof of concept
+
:import std/Combinator .
:import std/Number .
:import std/Pair P
+pi (+3) : (+14159)
+
# generates a float from a normal balanced ternary number
float! \(P.…:…) (+0)