aboutsummaryrefslogtreecommitdiff
path: root/std/stdlib.c
diff options
context:
space:
mode:
Diffstat (limited to 'std/stdlib.c')
-rw-r--r--std/stdlib.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/std/stdlib.c b/std/stdlib.c
index ed848c3..8636f11 100644
--- a/std/stdlib.c
+++ b/std/stdlib.c
@@ -41,6 +41,9 @@ int as_int(float x) {
return (int) x;
}
+float as_float(int x) {
+ return (float) x;
+}
bool sequals(char* a, char* b) {
if (strlen(a) != strlen(b)) {
return false;