Re: The fate of EuCOM with gotos....

new topic     » goto parent     » topic index » view thread      » older message » newer message

Matt Lewis wrote:

> > How do you think the decimal value would be derived from Hi32,Lo32 and
> > Mid32?  Also according to what I read, a VT_DECIMAL can have up to 28
> > decimal positions.  Will this be a problem when converting to a Euphoria
> > atom that can only handle up to 15?
> 
> Interesting...I think it could be a problem.  You'll either lose precision
> (assuming that it really has that many significant digits), or you'll need
> to store it in some other format (text, or a big number library).
> 
> If it wasn't apparent from googling (and it wasn't during the 5 min or so
> that I did...maybe some more is warranted) then I'd recommend looking at
> some known output, and reverse engineering.  I'll have to see if I have
> anything that will produce decimal values...Where are you getting them?
> 
I'm getting the values from an IBM AS/400 running DB2.  The numeric values
I'm getting are defined as a fixed number of decimals (15,5) which is
fairly common on this type of machine.  If you want to run a test then I
can arrange for you to run the client install that will put the ADO 
provider on your machine.

Incidentally, I'm still running into situations where a get of a string
field's value will return the actual string in some instances and in 
other instances it will return a numeric value that has to be fed to
peek_bstr().  Weird, huh?  If you install the ADO provider for my 
AS/400 then I might be able to provide some examples.

Please don't think that I want you to do all the work here!  I want to 
learn how it's all put together but I haven't been able to find a 
starting point to figure out how the functions are put together.  Can you
at least point me in the right direction?

Thanks!

Jonas Temple
http://www.yhti.net/~jktemple

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu