12-07-2016, 02:32 AM
I can not find the answer, so I ask for please help me.
Problem 1
autoHotkey Operators
X := (1920 // 160)
Y := (1080 // 128)
autoHotkey output
X: 960
Y: 8
I want to get the same value from QM as this result.
Problem 2
"**" Power. Both the base and the exponent may contain a decimal point. If the exponent is negative, the result will be formatted as a floating point number even if the base and exponent are both integers. Since ** is of higher precedence than unary minus, -2**2 is evaluated like -(2**2) and so yields -4. Thus, to raise a literal negative number to a power, enclose it in parentheses such as (-2)**2. Note: A negative base combined with a fractional exponent such as (-2)**0.5 is not supported; it will yield an empty string. But both (-2)**2 and (-2)**2.0 are supported.
I want to know the "**" operator and the corresponding QM operator.
Problem 3
":="Unlike most other operators, assignments are evaluated from right to left. Consequently, a line such as Var1 := Var2 := 0 first assigns 0 to Var2 then assigns Var2 to Var1.
I want to know the ":=" operator and the corresponding QM operator.
Problem 1
autoHotkey Operators
X := (1920 // 160)
Y := (1080 // 128)
autoHotkey output
X: 960
Y: 8
I want to get the same value from QM as this result.
Problem 2
"**" Power. Both the base and the exponent may contain a decimal point. If the exponent is negative, the result will be formatted as a floating point number even if the base and exponent are both integers. Since ** is of higher precedence than unary minus, -2**2 is evaluated like -(2**2) and so yields -4. Thus, to raise a literal negative number to a power, enclose it in parentheses such as (-2)**2. Note: A negative base combined with a fractional exponent such as (-2)**0.5 is not supported; it will yield an empty string. But both (-2)**2 and (-2)**2.0 are supported.
I want to know the "**" operator and the corresponding QM operator.
Problem 3
":="Unlike most other operators, assignments are evaluated from right to left. Consequently, a line such as Var1 := Var2 := 0 first assigns 0 to Var2 then assigns Var2 to Var1.
I want to know the ":=" operator and the corresponding QM operator.