|
-
February 21st, 2010, 08:53 AM
#1
Moving a double bit pattern to _int64
I need to create subroutines for high precision floating point operations and am stymied with an inability to move the bit pattern in a double to a _int64 or character array.
I tried to use a union but get "error C3923: 'Orbital::Form1::PDoubtoBig::$UnnamedClass$0x141c2c58$1$' : local class, struct or union definitions are not allowed in a member function of a managed class
Maybe an answer would be to use an unmanaged class but that would create all sorts of problems with the rest of my forms program as well as exceed my knowledge on how it could be done.
I tried to "and" the double with a hex integer such as 0x8000000000000000 to piecemeal the bits out of the double but get "error C2296: '&' : illegal, left operand has type 'double'"
Is there a fuction that will do this for me or a way to work aroud it?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|