Cagliostro
Programmer
Can someone tell me what is the binary format of float numbers? I think in asm is the same as in C++. You can try to run this code to understand me better:
#include<iostream>
using namespace std;
struct x
{
union
{
int i;
float f;
};
};
int main(int _args,char** _cmdline)
{
x a;
a.f=1.;
cout<<a.i<<endl;
a.i=1;
cout<<a.f<<endl;
return 0;
} John Fill
ivfmd@mail.md
#include<iostream>
using namespace std;
struct x
{
union
{
int i;
float f;
};
};
int main(int _args,char** _cmdline)
{
x a;
a.f=1.;
cout<<a.i<<endl;
a.i=1;
cout<<a.f<<endl;
return 0;
} John Fill
ivfmd@mail.md