1
0
forked from Mirror/wren

Merge pull request #472 from KyleCharters/master

Add Num .round
This commit is contained in:
Bob Nystrom
2017-10-06 07:51:55 -07:00
committed by GitHub
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