aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/c/urweb.c
diff options
context:
space:
mode:
authorGravatar Karen Sargsyan <karsar@ibms.sinica.edu.tw>2016-05-23 17:40:19 +0800
committerGravatar Karen Sargsyan <karsar@ibms.sinica.edu.tw>2016-05-23 17:40:19 +0800
commitae4778d7a3f4dacde39232b503bd134ce71444ee (patch)
tree7c7b838d73689bd6180ba532accde984c7e2d420 /src/c/urweb.c
parent87a6ab4f9ac7b2b2c0438a724bfe971ec9231714 (diff)
abs and floor added
Diffstat (limited to 'src/c/urweb.c')
-rw-r--r--src/c/urweb.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/c/urweb.c b/src/c/urweb.c
index c6f6220c..6eb3c21c 100644
--- a/src/c/urweb.c
+++ b/src/c/urweb.c
@@ -4517,6 +4517,10 @@ uw_Basis_int uw_Basis_round(uw_context ctx, uw_Basis_float n) {
return round(n);
}
+uw_Basis_int uw_Basis_floor(uw_context ctx, uw_Basis_float n) {
+ return floor(n);
+}
+
uw_Basis_float uw_Basis_pow(uw_context ctx, uw_Basis_float n, uw_Basis_float m) {
return pow(n,m);
}
@@ -4557,6 +4561,10 @@ uw_Basis_float uw_Basis_atan2(uw_context ctx, uw_Basis_float n, uw_Basis_float m
return atan2(n, m);
}
+uw_Basis_float uw_Basis_abs(uw_context ctx, uw_Basis_float n) {
+ return fabs(n);
+}
+
uw_Basis_string uw_Basis_atom(uw_context ctx, uw_Basis_string s) {
char *p;