Calchypotenuse

From EDukeWiki
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

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.