Re: value

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

On 22 Oct 2002, at 12:43, Robert Craig wrote:

> 
> Kat writes:
> > sequence x, y
> > -- assign something to y
> > x = value(y)
> >
> > Is there any length-limit to what can be assigned to y? 
> > Can y be max_integer long?
> 
> There's no limit. But keep in mind:
>    - There is a 200-character limit on a line of source code, 
>      so if you are using a literal string of digits, you'll 
>      have that limit. If you read the string of digits from
>      a file, or compute it somehow, you'll be ok. 
> 
>    - You might eventually produce +/- INF.
> 
>    - Internally, things are stored in at most 64-bit floating-point, so
>      you'll have a limit of about 15 decimal digits of accuracy.
>      Extra digits beyond that will not accomplish anything.

What about leading zero stripping, without decimal points? Like:
value("00000000000000000000000000000000000000000000000001")? Is 
there a limit there? I'd try all my questions, and not be bothering you, but i 
can't seem to come up with all possible failure possibilities myself. Which is 
why i am so delayed with the bignum.e lib. I haven't hit this yet, but i can see
the possibility of it happening.

Kat

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

Search



Quick Links

User menu

Not signed in.

Misc Menu