You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jun 16, 2026. It is now read-only.
villares edited this page May 24, 2020
·
4 revisions
Nome
abs()
Exemplos
int a =abs(153); // Atribui 153 à aint b =abs(-15); // Atribui 15 à b float c =abs(12.234); // Atribui 12.234 à cfloat d =abs(-9.23); // Atribui 9.23 à d
Descrição
Calcula o valor absoluto (magnitude) de um número. O valor absoluto de um número é sempre positivo.