Update.
This commit is contained in:
Vendored
+16
@@ -0,0 +1,16 @@
|
||||
// retoor <retoor@molodetz.nl>
|
||||
|
||||
System.print(65.toChar) // expect: A
|
||||
System.print(97.toChar) // expect: a
|
||||
System.print(48.toChar) // expect: 0
|
||||
|
||||
System.print(255.toBase(16)) // expect: ff
|
||||
System.print(255.toBase(2)) // expect: 11111111
|
||||
System.print(255.toBase(8)) // expect: 377
|
||||
System.print(0.toBase(16)) // expect: 0
|
||||
System.print((-42).toBase(10)) // expect: -42
|
||||
System.print(35.toBase(36)) // expect: z
|
||||
|
||||
System.print(255.toHex) // expect: ff
|
||||
System.print(10.toBinary) // expect: 1010
|
||||
System.print(8.toOctal) // expect: 10
|
||||
Reference in New Issue
Block a user