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

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

Jonas Temple wrote:
> 
> Sorry guys, couldn't resist!

Whew!  The title had me worried!

> Matt, I did some reading (based on the links you provided) on the
> VT_DECIMAL variant for EuCOM.  The decimal variant is:
> 
>   type DECIMAL
>         sequence   
>         integer(SHORT_KIND)::wReserved   
>         integer(BYTE_KIND)::scale   
>         integer(BYTE_KIND)::sign   
>         integer(LONG_KIND)::Hi32   
>         integer(LONG_KIND)::Lo32   
>         integer(LONG_KIND)::Mid32
>     end type DECIMAL
> 
> 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?

Matt Lewis

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

Search



Quick Links

User menu

Not signed in.

Misc Menu