This shows you the differences between two versions of the page.
ro:abs [2017/08/18 11:02] junior-root created |
ro:abs [2020/02/28 10:46] |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ===== Abs (Funcție) ===== | ||
- | > **Engleză: | ||
- | ==== Format ==== | ||
- | **abs** ( [[numericexpressions|număr]] ) | ||
- | |||
- | Întoarce [[floatexpressions|număr_zecimal]] sau [[integerexpressions|număr_întreg]] în funcție de tipul de număr transmis. | ||
- | ==== Descriere ==== | ||
- | Întoarce valoarea absolută a [[numericexpressions|numărului]] specificat. | ||
- | ==== Exemplu ==== | ||
- | < | ||
- | print abs(-45) | ||
- | print abs(6.45) | ||
- | </ | ||
- | va afișa | ||
- | < | ||
- | 45 | ||
- | 6.45 | ||
- | </ | ||
- | |||
- | ==== Vezi și ==== | ||
- | {{page> | ||
- | |||