HomeManualTopicsTypesSymbols
std::abs
returns the absolute value of its (numerical) argument
Parameter
- value
- the value to take the absolute value of
Results
None
Example
println! abs(-123)
Output
123
Topic
Math
See also
std::sgn |
returns the sign of its (numerical) argument |