Previous Up Next

12.4.6  Using strings as commands: expr

The expr command lets you use a string as a command.


Examples.


You can also use expr to convert a string to a number. If a string is simply a number enclosed by quotation marks, then expr will return the number.


Example.
Input:

expr("123")

Output:

123


In particular, the following strings will be converted to the appropriate number.


Previous Up Next