Skip to content

Commit 137d110

Browse files
committed
1 parent 9c9b6a6 commit 137d110

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/tests/units/decimal-test.r3

+6
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,12 @@ Rebol [
4545
--assert $0 = round/to 0.499 $1
4646
--assert money? round/to 0.5 $1
4747

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+
4854
--test-- "round/down"
4955
--assert 1.0 = round/down 1.999
5056
--assert -1.0 = round/down -1.999

0 commit comments

Comments
 (0)