forked from Mirror/wren
8
test/core/number/round.wren
Normal file
8
test/core/number/round.wren
Normal 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
|
||||
Reference in New Issue
Block a user