diff options
| author | Cody <cody@codyq.dev> | 2023-07-20 18:13:34 -0500 |
|---|---|---|
| committer | Cody <cody@codyq.dev> | 2023-07-20 18:13:34 -0500 |
| commit | 1219f5ed8aed0bcb6a416a194fce70f0a290309d (patch) | |
| tree | 5759c263bc626d288cb69434d1f46e20af49f2de /std/stdmath.c | |
| parent | 7c53e65cad365ec112d2ec1bd9c3091dbed05720 (diff) | |
| parent | 52d6bc8533616dd642c96f8b6e72f459e1b4d465 (diff) | |
| download | sloth-1219f5ed8aed0bcb6a416a194fce70f0a290309d.tar.gz | |
Merge branch 'master' of github.com:slothlang/slothlang
Diffstat (limited to 'std/stdmath.c')
| -rw-r--r-- | std/stdmath.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/std/stdmath.c b/std/stdmath.c index a650129..56e140c 100644 --- a/std/stdmath.c +++ b/std/stdmath.c @@ -1,6 +1,8 @@ #include <stdio.h> #include <stdlib.h> #include <time.h> +//#include <math.h> +//float fmodf(float x, float y); int random_setup = 0; @@ -11,3 +13,7 @@ int randGen(int min, int max) { } return random() % (max - min + 1) + min; } + +//int slothfloor(float x) { +// return (int) (x - fabs(fmodf(x, (float) 1))); +//} |
