sqr


描述

Multiplies a number by itself and so returns the square of that number. EG: sqr(5) would return 25 since 5*5=25.


语法:

sqr(val);


参数 描述
val The number to square.


Returns:

实数


例如:

score += sqr(dmg);

The above code will add on the square of the variable "dmg" to the score.