aboutsummaryrefslogtreecommitdiff
path: root/bc_funcs/std.bc
diff options
context:
space:
mode:
Diffstat (limited to 'bc_funcs/std.bc')
-rw-r--r--bc_funcs/std.bc5
1 files changed, 5 insertions, 0 deletions
diff --git a/bc_funcs/std.bc b/bc_funcs/std.bc
new file mode 100644
index 0000000..a369505
--- /dev/null
+++ b/bc_funcs/std.bc
@@ -0,0 +1,5 @@
+define abs(x) {
+ if (x < 0)
+ x *= -1
+ return x
+}