summaryrefslogtreecommitdiff
path: root/double.c
diff options
context:
space:
mode:
authorJulian Weigt <juw@posteo.de>2026-01-16 16:48:41 +0100
committerJulian Weigt <juw@posteo.de>2026-02-04 15:55:54 +0100
commiteefbfcdfc2f2374dcba95a62c31f3162e2247853 (patch)
tree8a2a2911c7c9d7f1a82f6e0943653daf14b15c02 /double.c
parentfe85dc4e65d2aea155fbe201ff6378fcc9af0718 (diff)
Print all results when finished, make printing prettier.
Diffstat (limited to 'double.c')
-rw-r--r--double.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/double.c b/double.c
index 92d087d..b84b49a 100644
--- a/double.c
+++ b/double.c
@@ -31,6 +31,8 @@ double power(double d, double p) { return pow(d,p); }
double valuetype_to_double(double d){ return d; }
+double inv_exptype_to_double(double d){ return 1.0/d; }
+
int to_string(char* s, double d){
sprintf(s,"%f",d);
return 0;