Mail Archives: djgpp/1998/08/22/12:03:34
Hi,
Yes, sorry, this isn't my actual code, I wrote it in the mail quickly, I
know I forgot the semis etc. What I am trying to do is find out if a 'bit'
in a double is ON or OFF and return the value. So I am using the int to
shift through the double and return the value, but I am getting errors. I
don't want to use a long because I need 64 bits!
Steve
Martin Str|mberg wrote:
> 1. Semi-colons omitted.
>
> 2. void return type but you still return something.
>
> 3. What do you really want to happen? If it was a float you could do
> some ugly casting (something like *(int *)(&var)), but IIRC,
> double's size doesn't match long or long long this wont work too
> good. So some additional code would be necessay. Anyway the result
> is almost meaningless.
>
> Cocteau Twins, Blue Bell Knoll,
>
> MartinS
- Raw text -