aboutsummaryrefslogtreecommitdiff
path: root/std/stdmath.c
diff options
context:
space:
mode:
Diffstat (limited to 'std/stdmath.c')
-rw-r--r--std/stdmath.c6
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)));
+//}