Skip to content

SQR

Syntax

SQR(X)

Description

Returns the square root of X. X must be >=0.

Example

10 FOR X = 10 TO 25 STEP 5
 20 PRINT X, SQR(X)
 30 NEXT
 RUN
 10 3.16228
 15 3.87298
 20 4.47214
 25 5
 Ok

See Also

  • ABS - Return the absolute value of a number (removes negative sign)
  • ATN - Returns the arctangent of X in radians
  • COS - Returns the cosine of X in radians
  • EXP - Returns e to the power of X
  • FIX - Returns the truncated integer part of X
  • INT - Return the largest integer less than or equal to a number (floor function)
  • LOG - Returns the natural logarithm of X
  • RND - Returns a random number between 0 and 1
  • SGN - Returns the sign of X (-1, 0, or 1)
  • SIN - Returns the sine of X in radians
  • TAN - Returns the tangent of X in radians