Members of expressions
Numerical constants may not contain spaces.
Examples of correctly defined constants:
2; 3.344; -2.34; 1.234e+5; 1.2344E-32; 0.0034;
Examples of incorrectly defined constants:
2,34 – the comma is not allowed as the decimal symbol.
1.234 e+5 – inadmissible "space" symbol is used in a constant.
Note for local language users: in the exponential number representation, use only the US ASCII "E" or "e".
String constants.
A string constant is an arbitrary string entered in quotes:
"This is a string constant!"
Should a string constant include the quote symbol ("), it must be preceded by the backslash symbol (\).
"This is another \"string\" constant!"
The above is the way to enter a string constant, whose value is to read,
This is another "string" constant!
To have the backslash symbol a part of a string constant, it must be duplicated.
Example:
"This \\is\\ t\w\o\!"
The value reads,
This \is\ two!
Note that a single backslash is ignored throughout.
Constant
In the system, it is possible to assign constant values to variables g,e, phi.
g(). Sets free-fall acceleration value.
e(). Sets Euler's value.
phi(). Sets golden ratio value.
See Also: