[Next] [Previous] [Up] [Top] [Contents] [Index]

13. Expressions

13. 1. Constants

13. 1. 1. Integer Constants

Integer constants are written in the ususal decimal notation.

Examples

13. 1. 2. Floating Point Constants

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.

Examples

13. 1. 3. String Constants

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.

Examples

13. 1. 1. - Integer Constants
Examples
13. 1. 2. - Floating Point Constants
Examples
13. 1. 3. - String Constants
Examples

MOLMOL Manual - 7 Oct 1997

[Next] [Previous] [Up] [Top] [Contents] [Index]

Generated with Harlequin WebMaker