diff options
| author | Nic Gaffney <gaffney_nic@protonmail.com> | 2023-07-17 23:00:30 -0500 |
|---|---|---|
| committer | Nic Gaffney <gaffney_nic@protonmail.com> | 2023-07-17 23:00:30 -0500 |
| commit | 52d6bc8533616dd642c96f8b6e72f459e1b4d465 (patch) | |
| tree | 31f3dc1f3378151e57f7bc37fa2b4e22ab757661 /std/stdmath.c | |
| parent | ee2133a13d61b3b3fb8fcf88f9c9781debd77d9e (diff) | |
| download | sloth-52d6bc8533616dd642c96f8b6e72f459e1b4d465.tar.gz | |
Standard lib rework
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))); +//} |
