Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Returns the square root of a positive number

Examples

Code Block
languagetext
// Compute some square roots

...


float $root, $value = 1000; 

...


$root = `squareRoot 9`;

...


print $root;

...


 

...

// Should be 3.000000

...


$root = `squareRoot $value`;

...


print $root; 

...


// Should be 31.622776

Scroll pagebreak

Additional information

...