git.shiar.nl
/
barcat.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
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
+++ b/
t/t1402-rounded.in
@@ -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