sytax-docs: mention that numbers may contain commas
parent
df576aa6c3
commit
581489b64f
|
@ -34,11 +34,11 @@ ARTICLE: "syntax-immediate" "Parse time evaluation"
|
||||||
} ;
|
} ;
|
||||||
|
|
||||||
ARTICLE: "syntax-integers" "Integer syntax"
|
ARTICLE: "syntax-integers" "Integer syntax"
|
||||||
"The printed representation of an integer consists of a sequence of digits, optionally prefixed by a sign."
|
"The printed representation of an integer consists of a sequence of digits, optionally prefixed by a sign and arbitrarily separated by commas."
|
||||||
{ $code
|
{ $code
|
||||||
"123456"
|
"123456"
|
||||||
"-10"
|
"-10"
|
||||||
"2432902008176640000"
|
"2,432,902,008,176,640,000"
|
||||||
}
|
}
|
||||||
"Integers are entered in base 10 unless prefixed with a base-changing prefix. " { $snippet "0x" } " begins a hexadecimal literal, " { $snippet "0o" } " an octal literal, and " { $snippet "0b" } " a binary literal. A sign, if any, goes before the base prefix."
|
"Integers are entered in base 10 unless prefixed with a base-changing prefix. " { $snippet "0x" } " begins a hexadecimal literal, " { $snippet "0o" } " an octal literal, and " { $snippet "0b" } " a binary literal. A sign, if any, goes before the base prefix."
|
||||||
{ $example
|
{ $example
|
||||||
|
|
Loading…
Reference in New Issue