Abs
Copied!
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.
Copied!
client.query(
q.Abs(-100)
)
.then((ret) => console.log(ret))
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!