☜ | Numeric Interpretation1995 Version of ANSI (Equivalent to Current ISO Version) of Standard | ☞ |
Certain operations, such as arithmetic, deal with the numeric interpretations of their operands. The numeric interpretation is a mapping from the set of all data values into the set of all numeric values, described by the following algorithm. Note that the numeric interpretation maps numeric values into themselves.
(Note: The head of a string is defined to be a substring which contains an identical sequence of characters in the string to the left of a given point and none of the characters in the string to the right of that point. A head may be empty or it may be the entire string.)
Consider the argument to be the string S.
First, apply the following sign reduction rules to S as many times as possible, in any order.
Second, apply one of the following, as appropriate.
The numeric expression numexpr is defined to have the same syntax as expr. Its presence in a syntax description serves to indicate that the numeric interpretation of its value is to be taken when it is executed.
numexpr | ::= | expr |
Copyright © Standard Documents; 1977-2024 MUMPS Development Committee;
Copyright © Examples: 1995-2024 Ed de Moel;
Copyright © Annotations: 2003-2008 Jacquard Systems Research
Copyright © Annotations: 2008-2024 Ed de Moel.
This page most recently updated on 12-Sep-2014, 13:11:21.
For comments, contact Ed de Moel (demoel@jacquardsystems.com)