Sqrt()

From ElectronicWar

Jump to: navigation, search
Function information for sqrt()
Function sqrt()
Parameters Float
API Challenge
Cost $0
Level N/A
CPU Usage 0
Description Returns a float representing the positive square root of the provided float



[edit] Example

If a challenge were to ask you for all the square roots of the float provided, the script would be:

float num = getInputFloat()
float possqr = sqrt(num);
float negsqr = sqrt(num)* (-1);
setOutputFloat(possqr);
setOutputFloat(negsqr);
Personal tools