diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2025-11-09 19:08:30 -0500 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2025-11-09 19:08:30 -0500 |
| commit | 4b744e5e1cfefa72a923b36f25898f0de6b803eb (patch) | |
| tree | 00d4dbe1a1ef7aa5de5ed3dc20f8906f2cf3ab1d /src/stdlib/reals.h | |
| parent | 1d461611bac782c272d0e082d5da74b4fe353ae6 (diff) | |
Real division
Diffstat (limited to 'src/stdlib/reals.h')
| -rw-r--r-- | src/stdlib/reals.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/stdlib/reals.h b/src/stdlib/reals.h index d60a3603..ededa5c1 100644 --- a/src/stdlib/reals.h +++ b/src/stdlib/reals.h @@ -3,9 +3,13 @@ #include "datatypes.h" +#define NONE_REAL ((Real_t)NULL) + Int_t Real$compute(Real_t r, int64_t precision); Text_t Real$value_as_text(Real_t x, int64_t digits); +OptionalReal_t Real$parse(Text_t text, Text_t *remainder); +Real_t Real$from_text(Text_t text); Real_t Real$from_float64(double n); Real_t Real$from_int(Int_t i); @@ -13,6 +17,7 @@ double Real$as_float64(Real_t x); Int_t Real$as_int(Real_t x); Real_t Real$negative(Real_t x); +Real_t Real$inverse(Real_t x); Real_t Real$plus(Real_t x, Real_t y); Real_t Real$minus(Real_t x, Real_t y); Real_t Real$times(Real_t x, Real_t y); |
