Skip to content

Instantly share code, notes, and snippets.



Last active Jul 13, 2016
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