In C, I can easily (hardest part was lX vs X) determine the internal representation of a 64 bit float, which is easy to understand and correct--HOW CAN I DO THIS IN PYTHON (2 preferred)?:
Mac_3.2.57$cat f.c
#include <stdio.h>
main(void){
union A64bFloatOrLong{
double F;
long L;}a64bFloatOrLong;
a64bFloatOrLong.F=1.0;
printf("0x%016.16lX\n",a64bFloatOrLong.L);}
Mac_3.2.57$cc f.c
f.c:2:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int]
main(void){
^
1 warning generated.
Mac_3.2.57$./a.out
0x3FF0000000000000