Skip to content

Commit

Permalink
update intval doc with explicit binary numeral notation
Browse files Browse the repository at this point in the history
  • Loading branch information
jawira committed Aug 15, 2023
1 parent 2aa5a9c commit 960ea5d
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion reference/var/functions/intval.xml
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,16 @@
<itemizedlist>
<listitem>
<simpara>
if string includes a "0x" (or "0X") prefix, the base is taken
if string starts with a "0x" (or "0X") prefix, the base is taken
as 16 (hex); otherwise,
</simpara>
</listitem>
<listitem>
<simpara>
if string starts with a "0b" (or "0B") prefix, the base is taken
as 2 (binary); otherwise,
</simpara>
</listitem>
<listitem>
<simpara>
if string starts with "0", the base is taken as 8 (octal);
Expand Down

0 comments on commit 960ea5d

Please sign in to comment.