Difference between revisions of "Square Root"
Jump to navigation
Jump to search
commenting comments again
imported>DragoonWraith |
imported>DragoonWraith (commenting comments again) |
||
Line 6: | Line 6: | ||
The list of variables you will need declared in your [[Global Script]]: | The list of variables you will need declared in your [[Global Script]]: | ||
float input (the number whose root you need) | float input ;(the number whose root you need) | ||
float SqRt (the root, your answer) | float SqRt ;(the root, your answer) | ||
Your input variable need not necessarily be a float, it could be a short or long, but SqRt needs to be a float, as few square roots are integers. You are free to rename either, but remember to change the function code. | Your input variable need not necessarily be a float, it could be a short or long, but SqRt needs to be a float, as few square roots are integers. You are free to rename either, but remember to change the function code. | ||