Fortune Telling Collection - Comprehensive fortune-telling - What is the calculator command in CMD?

What is the calculator command in CMD?

Settings/expressions

The /A command-line switch specifies the string to the right of the equal sign as the numeric expression to be evaluated. The expression

The evaluator is simple and supports the following operations in descending order of priority:

()-Grouping

! ~-unary operator

*/%-arithmetic operator

+-arithmetic operator

& lt>>-logical shift

-bitwise AND

-Bitwise "different"

|-Bitwise or

= * =/=% =+=-Assignment

& amp= ^= | = & lt; & lt= & gt& gt=

,-Expression delimiter

If you use any logical or remainder operators, you need to match the expression string with the

Expand quotation marks. Any non-numeric string key in the expression is used as an environment variable.

The name whose value has been converted into a number before use. If specified

Given an environment variable name, but it is not defined in the current environment, the value will be set to.

Zero. This allows you to calculate using the values of environment variables without typing these% symbols.

Get their values. If SET /A is executed on the command line instead of the command script,

Then the last value of the expression is displayed. Assigned operator is among assigned operators.

An environment variable name is required on the left. Except hexadecimal, octal with 0x prefix.

When the prefix is 0, the value is a decimal number. So 0x 12 and 18 and 022.

Same. Please note that octal formulas are easily confused: 08 and 09 are invalid numbers.

Because 8 and 9 are not valid octets. (& amp)