Menu

Literals

Csaba Skrabák

String literals

String literals start and end with double quotes. There is no escaping or special characters handled in a string literal. The double quote character itself therefore cannot appear in literals. The easiest work-around is to concatenate a CHR$(34).

Number literals

Number literals match the following regular expression:

/^(([0-9]*[.])?[0-9]+(E[+-]?[0-9]+)?|%[01]+|![0123]+|[$][A-F0-9]+)/

The conversion rules of JavaScript's parseInt apply to the literals starting with % (binary), ! (4-base) or $ (hexadecimal.)

Those of parseFloat apply otherwise.


Related

Wiki: Expressions
Wiki: Home

Discussion

Anonymous
Anonymous

Add attachments
Cancel