Created
December 11, 2018 18:19
-
-
Save parzibyte/97ee0927edebf4ee0672b00f3121f865 to your computer and use it in GitHub Desktop.
Función fabsf en C created by parzibyte - https://repl.it/@parzibyte/Funcion-fabsf-en-C
This file contains 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
#include <stdio.h> // printf | |
#include <math.h> // fabsf | |
int main(void) { | |
float negativo = -1.598; | |
printf("El valor absoluto de %f es %f", negativo, fabsf(negativo)); | |
// El valor absoluto de -1.598000 es 1.598000 | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment