DEV/DEV1.1/TP08/conversion.c

11 lines
229 B
C
Raw Normal View History

#include <stdio.h>
#include <stdlib.h>
int main(void) {
long long int n = 4614256656552045848LL;
double* p = (double*) &n;
printf("π = %f\n", *p);
long long int m = *p*2;
printf("%lld\n", m );
return EXIT_SUCCESS;
}