Abs
Abs( value )
Abs( value )
Abs( value )
Abs( value )
abs( value )
Abs( value )
Parameters
Argument | Type | Definition and Requirements |
---|---|---|
|
Number |
Take the absolute value of this argument. |
Examples
The query below returns the absolute value of -100.
Value result = await client.Query(
Abs(-100)
);
Console.WriteLine(result);
LongV(100)
result, err := client.Query(
f.Abs(-100))
if err != nil {
fmt.Fprintln(os.Stderr, err)
} else {
fmt.Println(result)
}
100
System.out.println(
client.query(
Abs(Value(-100))
).get());
100
client.query(
q.Abs(-100)
)
.then((ret) => console.log(ret))
.catch((err) => console.error('Error: %s', err))
100
result = client.query(
q.abs(-100)
)
print(result)
100
println(Await.result(
client.query(
Abs(-100)
),
5.seconds
))
100
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!