Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
|
|
@ -0,0 +1 @@
|
|||
base_convert("26", 10, 16); // returns "1a"
|
||||
|
|
@ -0,0 +1 @@
|
|||
intval("1a", 16); // returns 26
|
||||
|
|
@ -0,0 +1 @@
|
|||
base_convert(26, 10, 16); // returns "1a"
|
||||
|
|
@ -0,0 +1,12 @@
|
|||
// converts int to binary string
|
||||
decbin(26); // returns "11010"
|
||||
// converts int to octal string
|
||||
decoct(26); // returns "32"
|
||||
// converts int to hex string
|
||||
dechex(26); // returns "1a"
|
||||
// converts binary string to int
|
||||
bindec("11010"); // returns 26
|
||||
// converts octal string to int
|
||||
octdec("32"); // returns 26
|
||||
// converts hex string to int
|
||||
hexdec("1a"); // returns 26
|
||||
Loading…
Add table
Add a link
Reference in a new issue