Another update from ingydotnet^djgoku
This commit is contained in:
parent
91df62d461
commit
948b86eafa
7604 changed files with 108452 additions and 22726 deletions
14
Task/Character-codes/REXX/character-codes-2.rexx
Normal file
14
Task/Character-codes/REXX/character-codes-2.rexx
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
/* REXX */
|
||||
yyy='c' /*assign a lowercase c to YYY */
|
||||
yyy='83'x /*assign hexadecimal 83 to YYY */
|
||||
/*the X can be upper/lowercase.*/
|
||||
yyy=x2c(83) /* (same as above) */
|
||||
yyy='10000011'b /* (same as above) */
|
||||
yyy='1000 0011'b /* (same as above) */
|
||||
/*the B can be upper/lowercase.*/
|
||||
yyy=d2c(129) /*assign decimal code 129 to YYY */
|
||||
|
||||
say yyy /*displays the value of YYY */
|
||||
say c2x(yyy) /*displays the value of YYY in hexadecimal. */
|
||||
say c2d(yyy) /*displays the value of YYY in decimal. */
|
||||
say x2b(c2x(yyy))/*displays the value of YYY in binary (bit string). */
|
||||
Loading…
Add table
Add a link
Reference in a new issue