REBOL 3 Docs Guide Concepts Functions Datatypes Errors
  TOC < Back Next >   Updated: 3-Aug-2010 Edit History  

REBOL 3 Functions: square-root

square-root  value

Returns the square root of a number.

Arguments:

value [number!]

See also:

exp   log-10   log-2   log-e   power  

Description

Returns the square-root of the number provided. If the number is negative, an error will occur (which you can trap with the TRY function).

print square-root 4
2.0
print square-root 2
1.414213562373095


  TOC < Back Next > REBOL.com - WIP Wiki Feedback Admin