We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9c9b6a6 commit 137d110Copy full SHA for 137d110
src/tests/units/decimal-test.r3
@@ -45,6 +45,12 @@ Rebol [
45
--assert $0 = round/to 0.499 $1
46
--assert money? round/to 0.5 $1
47
48
+ --test-- "round/to (percent)"
49
+ ;@@ https://github.com/Oldes/Rebol-issues/issues/1028
50
+ --assert 150% = round/to 1.45677 10%
51
+ --assert 150% = round/to 145.6% 10%
52
+ --assert 150% = to percent! round/to 1.45677 to decimal! 10%
53
+
54
--test-- "round/down"
55
--assert 1.0 = round/down 1.999
56
--assert -1.0 = round/down -1.999
0 commit comments