Home > lang > sqr 
 fr de es it nl pl pt pt_BR mk sq ca ar fa vi ja ru zh zh_TW eo
Previous  Next  Edit  Rename  Undo  Refresh  Search  Administration  
Documentation
History
 
Sqr
Syntax
Value = Sqr ( Number AS Float )

Computes the square root of a number. The number must be greater than or equal to zero

Errors

MessageDescription
Mathematical error (#19) Number is negative.

Examples

PRINT Sqr(2)

1.414213562373

DIM i AS INTEGER
FOR i = 1 TO 5
PRINT i,  Sqr(i)
NEXT


1     1
2     1.414213562373
3     1.732050807569
4     2
5     2.2360679775

See also

Logarithms & Exponentials Functions