aboutsummaryrefslogtreecommitdiffstats
path: root/test/mpfrrem.awk
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2014-08-05 17:38:37 +0300
committerArnold D. Robbins <arnold@skeeve.com>2014-08-05 17:38:37 +0300
commiteafb7b72c2b6095cba51a77f5f7a5240a658c55c (patch)
tree4b60eb71ac37bb58d3137d42442572e3e6288107 /test/mpfrrem.awk
parent2aff045eb07d96c572242287487450f1d9acc5fe (diff)
downloadegawk-eafb7b72c2b6095cba51a77f5f7a5240a658c55c.tar.gz
egawk-eafb7b72c2b6095cba51a77f5f7a5240a658c55c.tar.bz2
egawk-eafb7b72c2b6095cba51a77f5f7a5240a658c55c.zip
Bug fix to MPFR mod operation for negative numerator.
Diffstat (limited to 'test/mpfrrem.awk')
-rw-r--r--test/mpfrrem.awk6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/mpfrrem.awk b/test/mpfrrem.awk
new file mode 100644
index 00000000..fd8bc4d5
--- /dev/null
+++ b/test/mpfrrem.awk
@@ -0,0 +1,6 @@
+BEGIN {
+ print "15 % 7 =", 15 % 7
+ print "15 % -7 =", 15 % -7
+ print "-15 % 7 =", -15 % 7
+ print "-15 % -7 =", -15 % -7
+}