mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-10-27 04:40:59 +01:00
33793: add 0b binary interpretation to integer constants
This commit is contained in:
parent
c4110f7f4e
commit
a8927bf27b
4 changed files with 13 additions and 3 deletions
|
|
@ -39,7 +39,8 @@ zero status.
|
|||
cindex(arithmetic base)
|
||||
cindex(bases, in arithmetic)
|
||||
Integers can be in bases other than 10.
|
||||
A leading `tt(0x)' or `tt(0X)' denotes hexadecimal.
|
||||
A leading `tt(0x)' or `tt(0X)' denotes hexadecimal and a leading
|
||||
`tt(0b)' or `tt(0B) binary.
|
||||
Integers may also be of the form `var(base)tt(#)var(n)',
|
||||
where var(base) is a decimal number between two and thirty-six
|
||||
representing the arithmetic base and var(n)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue