On This Page

Home / Search/ Language Reference/ Functions/ Scalar Functions/ Mathematical Functions/sqrt

sqrt ​

The sqrt function returns the square root function.

Syntax ​

sqrt( X )

Arguments ​

  • X: A real number >= 0.

Returns ​

  • A positive number such that sqrt(x) * sqrt(x) == x.
  • null if the argument is negative or cannot be converted to a real value.

Examples ​

This returns 4:

print sqrt ( 16 )

This returns null:

print sqrt ( -64 )