Skip to main content

sqrt

Discworld driver help

sqrt

Name

sqrt() - returns the square root of a float

Synopsis

float sqrt( float f );
int sqrt( int f );

Description

sqrt() returns the non-negative square root of its argument, `f'. The value of `f' must not be negative. On Discworld, this function works on integer arguments too.

See also

exp(), log(), pow()