Name | abs() |
||
---|---|---|---|
Examples |
a = abs(153)# Sets 'a' to 153 b = abs(-15)# Sets 'b' to 15 c = abs(12.234)# Sets 'c' to 12.234 d = abs(-9.23)# Sets 'd' to 9.23 | ||
Description | Calculates the absolute value (magnitude) of a number. The absolute value of a number is always positive. | ||
Syntax | abs(n) | ||
Parameters |
|
Updated on Mon Sep 21 15:53:24 2020.
If you see any errors or have comments, please let us know.
This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License