C := A-B = 0.24
if C is calculated, both ACos and ASin are not working properly.
If C is given 0.24, the results are ok.
It looks like a serious bug for math functions. AHK.L 1.1.26.00
Code: Select all
A:=8.5
B:=8.26
C:= A-B
Ang1 :=ACos(C/0.240)
Ang2 :=ASin(C/0.240)
Msgbox % "c: " C " Ang1: " Ang1 " Ang2: " Ang2
C:= 0.24
Ang1 :=ACos(C/0.240)
Ang2 :=ASin(C/0.240)
Msgbox % "c: " C " Ang1: " Ang1 " Ang2: " Ang2