1
0
forked from Mirror/wren

Add Num .round

This commit is contained in:
Kyle Charters
2017-09-20 20:27:02 -04:00
parent d390e16a99
commit 84f2252c68
4 changed files with 20 additions and 0 deletions

View File

@ -0,0 +1,8 @@
System.print(123.round) // expect: 123
System.print((-123).round) // expect: -123
System.print(0.round) // expect: 0
System.print((-0).round) // expect: -0
System.print(0.123.round) // expect: 0
System.print(12.3.round) // expect: 12
System.print((-0.123).round) // expect: -0
System.print((-12.3).round) // expect: -12