Documentation

Sqrt

Table of Contents

sqrt() SQRT. float|string
pi() SQRTPI. float|string

Methods

sqrt()

SQRT.

public static sqrt( $number : mixed ) : float|string

Returns the result of builtin function sqrt after validating args.

Parameters
$number : mixed

Should be numeric

Return values
float|string —

square roor

pi()

SQRTPI.

public static pi( $number : float ) : float|string

Returns the square root of (number * pi).

Parameters
$number : float

Number

Return values
float|string —

Square Root of Number * Pi, or a string containing an error

Search results