coldneut
February 21st, 2010, 07:53 AM
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?
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?