|
|
| Sqrt | ||
| Result# = Sqrt(InputValue#) | ||
| Parameters: InputValue# = The Value you wish to find the square root of |
||
| Returns: Result# = The Square root of Input Value |
||
Sqrt calculates the square root of a positive number. The square root of a number, is a value than when multiply by it'self equals the original value. FACTS: * Only positive numbers * Hint: Sqrt is often used to calculate the distance between two objects ( Pythagoras theorem). PlayBASIC has a built in command for this purpose called GetDistance2D, which is not only simpler, but faster. Mini Tutorial:
This example would output.
|
| Related Info: | Abs | Exp | GetAngle2D | GetDistance2D | GetDistance3D | Sin : |
|
|
|||||||||||||||||||||||||||||||||||||||
|
(c) Copyright 2002 - 2026 - Kevin Picone - PlayBASIC.com |