shift unit to prevent additional digits after rounding
[barcat.git] / t / t1402-rounded.in
diff --git a/t/t1402-rounded.in b/t/t1402-rounded.in
new file mode 100644 (file)
index 0000000..edaab9f
--- /dev/null
@@ -0,0 +1,24 @@
+999499 -
+999500 +
+999501 ++
+1000000
+1049999 -
+1050000 +
+
+.000999499999 -
+.0009995 +
+.001
+
+999.49 -
+999.50 +
+1000
+1049 -
+1050 +
+9999
+
+.999 -
+.9994999 -
+.9995 +
+1.0
+1
+1.000001