Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
test.c:
=====
#define F 3.402824e+38 // slightly larger than FLT_MAX
#include "stdio.h"
int main()
{
float a = F;
double b = F;
printf("%f\n", a);
printf("%f\n", b);
}
====
$ ./test
inf
340282399999999988549462478472641249280.000000
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment