Floating point is fun
#include <math.h> | |
#include <stdio.h> | |
int main(void) { | |
// pow(x, 0.5) -> sqrt(x) | |
printf("%f %f\n", pow(-0.0, 0.5), sqrt(-0.0)); | |
return (0); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment