How can I dissect a value defined as a float?
For example:
float fv=1994;
int int1;
int int2;
I would like to do somthing like:
> sscanf(fv,"2d2d", &int1, &int2);
But this obviously won't work. sscanf is always
expecting it's first argument to be a string. First,
can this even be done, and if so how? Do I need to "Cast"
fv, and if so how?
PS - I like to keep examples simple and to the point!
For example:
float fv=1994;
int int1;
int int2;
I would like to do somthing like:
> sscanf(fv,"2d2d", &int1, &int2);
But this obviously won't work. sscanf is always
expecting it's first argument to be a string. First,
can this even be done, and if so how? Do I need to "Cast"
fv, and if so how?
PS - I like to keep examples simple and to the point!