When I do the following operations it seems to return an incorrect value:
B4X:
Log(SinD((180 - 120) / 2)) 'return 0.4330127018922193
Log(Sin((cPI - cPI * 2 / 3) / 2)) 'return 0.4330127018922193
Log(Sin((cPI - (cPI * 2 / 3)) / 2)) 'return 0.5, correct
Log(SinD(30)) 'return 0.49999999999999994, correct
Log((180 - 120) / 2) 'return 30, correct