Math.sqrt()

Calculate the square root of a number.

Usage

Hover over inputs/exits for more info.

var Math = require('machinepack-math');


// Calculate the square root of a number.

Math.sqrt({

number: 64,

}).execSync();

Inputs

number required

The number to take the square root of.

64

Exits

error

An unexpected error occurred.

imaginary

Returns a number which, if multiplied by √-1, would represent the √ of the provided number.

8
success

OK.

8