mirror of
https://github.com/wren-lang/wren.git
synced 2026-01-11 06:08:41 +01:00
9 lines
346 B
Plaintext
9 lines
346 B
Plaintext
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
|