[Next] [Previous] [Up] [Top] [Contents] [Index]
13. Expressions
Integer constants are written in the ususal decimal notation.
7
395
Floating point constants are written in the ususal notation, with a decimal point. The scientific notation with an exponent (indicated with the letter E
or e
is also supported. The decimal point is optional for numbers with exponent. Since integer values are automatically converted to floating point values wherever a floating point value is expected, the user can also use integer constants.
5.
3
23.478e17
3.59e-5
1E3
String constants are enclosed in double quotes. If double quotes are used inside a string, they have to be escaped by a \
(backslash). If a string is used inside a command argument, single quotes also have to be escaped by using \'
because they are used for enclosing each argument.
"hello"
"Hello World!"
[Next] [Previous] [Up] [Top] [Contents] [Index]
Generated with Harlequin WebMaker