Return absolute value.
Syntax
abs(value, /)Parameters
| Name | Description |
|---|---|
valueInt | Float | Input number Required · Positional only No default |
Returns
Float — Absolute numeric value.Behavior / side effects
Return absolute value.
Execution
- Blocking: No
- Thread safety: Use separate objects per flow
- Parallel execution: Yes
Value operations execute in the calling flow without an intentional wait for capture, gesture completion, or user input. Create mutable containers/builders separately in each flow; this is isolation, not a shared-object synchronization guarantee.
Example
delta = abs(-12.5)
text(str(delta))Errors / limitations
No additional limitations documented; follow the parameter and behavior contract above.
Related APIs
None