Skip to content

Instantly share code, notes, and snippets.

@dcci dcci/floating.c
Last active Jul 13, 2016

Embed
What would you like to do?
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
You can’t perform that action at this time.