Sqrt

Not available in this language yet.
Sqrt( value )
Sqrt( value )
Sqrt( value )
Not available in this language yet.
Sqrt( value )

Description

The Sqrt function returns the positive square root of a number value.

Parameters

Argument Type Definition and Requirements

value

Number

Take the square root of value.

Returns

A number which is the given angle measured in degrees.

Examples

The query in the following example returns the square root of 16:

Not available in this language yet.
Not available in this language yet.
System.out.println(
    client.query(
        Sqrt(Value(16))
    ).get());
4.0
client.query(
  q.Sqrt(16)
)
.then((ret) => console.log(ret))
4
Not available in this language yet.
println(Await.result(
  client.query(
    Sqrt(16)
  ),
  5.seconds
))
4.0

Is this article helpful? 

Tell Fauna how the article can be improved:
Visit Fauna's forums or email docs@fauna.com

Thank you for your feedback!