Calchypotenuse

From EDukeWiki
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.