bc.sqrt

Square root

Prototype

n = bc.sqrt  (a)

Description

Returns the square root of a.

Example:

bc.digits (40)
i = bc.sqrt (2)
print (i) --> 1.4142135623730950488016887242096980785696

Lua functions

Topics