Added simple "Math" library.
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
IO.print(Math.abs(123)) // expect: 123
|
||||
IO.print(Math.abs(-123)) // expect: 123
|
||||
IO.print(Math.abs(0)) // expect: 0
|
||||
IO.print(Math.abs(-0)) // expect: 0
|
||||
IO.print(Math.abs(-0.12)) // expect: 0.12
|
||||
IO.print(Math.abs(12.34)) // expect: 12.34
|
||||
IO.print(Math.abs(1.0)) // expect: 1
|
||||
IO.print(Math.abs(-1.0)) // expect: 1
|
||||
Reference in New Issue
Block a user