JASS:
Rad2Deg() or bj_RADTODEG
Is one faster or something? If one is faster which one would that be?
Rad2Deg() or bj_RADTODEG
Made even further useless by the editor's limited - but still apparent - implicit casting.One less-evil but unecessary function is I2R, especially when the GUI adds it, since it's only useful for division and could be replaced with (i + 0.).
local integer myInteger = 1
call DisplayTextToForce(GetPlayersAll(), R2S(I2R(myInteger)))
call DisplayTextToForce(GetPlayersAll(), R2S(myInteger + 0.))
call DisplayTextToForce(GetPlayersAll(), R2S(myInteger))
[ljass]bj_RADTODEG[/ljass] has a value of [ljass]180 / bj_PI[/ljass].Thus [ljass]Rad2Deg(50)[/ljass] is actually calculating [ljass]50 * bj_RADTODEG[/ljass] ( [ljass]bj_RADTODEG[/ljass] has a value of [ljass]bj_PI / 180[/ljass]).
Oops. Edited for correctness.[ljass]bj_RADTODEG[/ljass] has a value of [ljass]180 / bj_PI[/ljass].
[ljass]bj_DEGTORAD[/ljass] has a value of [ljass]bj_PI / 180[/ljass].