diff options
| author | Julian Weigt <juw@posteo.de> | 2026-01-16 16:48:41 +0100 |
|---|---|---|
| committer | Julian Weigt <juw@posteo.de> | 2026-02-04 15:55:54 +0100 |
| commit | eefbfcdfc2f2374dcba95a62c31f3162e2247853 (patch) | |
| tree | 8a2a2911c7c9d7f1a82f6e0943653daf14b15c02 /ratio.c | |
| parent | fe85dc4e65d2aea155fbe201ff6378fcc9af0718 (diff) | |
Print all results when finished, make printing prettier.
Diffstat (limited to 'ratio.c')
| -rw-r--r-- | ratio.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -129,6 +129,8 @@ rational power(rational r, unsigned int p){ return s; } +double inv_exptype_to_double(int r){ return 1.0/((double)r); } + double valuetype_to_double(rational r){ double i; if(r.s) { i=-1.0; } else { i=1.0; } |
