Skip to content

Instantly share code, notes, and snippets.

@parzibyte
Created December 11, 2018 18:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save parzibyte/97ee0927edebf4ee0672b00f3121f865 to your computer and use it in GitHub Desktop.
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
#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