Created
June 18, 2020 15:38
-
-
Save zerobugs-oficial/cdda60fd9712b9f148900ea048d78728 to your computer and use it in GitHub Desktop.
Calculando o módulo de um número com a função abs()
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
echo abs(6.7); // retorna 6.7 | |
echo abs(-6.7); // retorna 6.7 | |
echo abs(-3); // retorna 3 | |
echo abs(3); // retorna 3 | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment