Sqrt

Sqrt( value )
Sqrt( value )
Sqrt( value )
Sqrt( value )
sqrt( value )
Sqrt( value )

Description

The Sqrt function returns the positive square root of the provided numeric value.

Parameters

Argument Type Definition and Requirements

value

The number whose square root should be returned.

Returns

The numeric square root of value.

Examples

The following query returns the square root of 16:

Value result = await client.Query(
    Sqrt(16)
);

Console.WriteLine(result);
DoubleV(4)
result, err := client.Query(
	f.Sqrt(16))

if err != nil {
	fmt.Fprintln(os.Stderr, err)
} else {
	fmt.Println(result)
}
4
System.out.println(
    client.query(
        Sqrt(Value(16))
    ).get());
4.0
client.query(
  q.Sqrt(16)
)
.then((ret) => console.log(ret))
.catch((err) => console.error('Error: %s', err))
4
result = client.query(
  q.sqrt(16)
)
print(result)
4.0
println(Await.result(
    client.query(
        Sqrt(16)
    ),
    5.seconds
))
4.0

Was this article helpful?

We're sorry to hear that.
Tell us how we can improve!
Visit Fauna's Discourse forums or email docs@fauna.com

Thank you for your feedback!