$abs
The$abs operator returns the absolute value of a number.
Input
- A single numeric value
Output
- The absolute value of the input
Examples
Positive Number
5
Negative Number
3.5
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
$abs operator returns the absolute value of a number.
{
"$abs": [
5
]
}
5
{
"$abs": [
-3.5
]
}
3.5
{
"$abs": [
{
"$input": "temperature_change"
}
]
}
