Calchypotenuse

From EDukeWiki
Revision as of 17:17, 9 January 2013 by Hendricks266 (talk | contribs) (Created page with "'''calchypotenuse''' <returnvar> <x> <y> Calculates the value of {{sqrt|x{{exp|2}} + y{{exp|2}}}} and assigns it to the gamevar <returnvar>. Internally, this command has...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

calchypotenuse <returnvar> <x> <y>

Calculates the value of √x2 + y2  and assigns it to the gamevar <returnvar>.

Internally, this command has special coding to use 64-bit integers in its calculations so the in-process square (before the root is taken) does not overflow.