Calc, Comment (or “--”) – HP Integrity NonStop J-Series User Manual
Page 122
NonStop AutoTMF Commands
HP NonStop AutoTMF Software User’s Guide—429952-016
6-46
CALC
CALC
A four-function calculator. Operators include addition, subtraction, multiplication,
division and parentheses. Multiplication and division have precedence over addition
and subtraction. Numeric operands are assumed to be decimal unless preceded by %
(for octal), %h (for hexadecimal), or %b (for binary). An expression comprised of
simple integers is processed using integer arithmetic. If any operand contains a
decimal point, the expression will be evaluated to four decimal places of accuracy.
expression
is one of:
a constant
expression operator expression
expression
constant
a decimal constant with or without a decimal point, or a binary, octal, or
hexadecimal integer prefixed by %b, % or %h respectively.
operator
the arithmetic operator +, -, * or /
COMMENT (or “--”)
Causes the AutoTMF CI to ignore the remainder of the current line. COMMENT may
not appear within the lines of a multiline command.
In addition to the explicit COMMENT command, a pair of dashes (– –) causes the CI to
ignore all remaining text on the current line. A dash-dash comment may appear within
a multiline command.I
CALC expression;
COMMENT any-text
or
-- any-text