Re: Jesus and his HEX Number Problem {Rob??}

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

On Fri, 3 Jul 1998 04:18:14 -0700, Hawke <mdeland at NWINFO.NET> wrote:

>-------------------------------
>constant testnum = #FFFFFFFF
>integer testnum2
>testnum2 = #FFFFFFFF
>printf(1, "%d\n",testnum)
>printf(1, "%d\n",testnum2)
>-------------------------------
>
><Stumped>Hawke'</Stumped>

According to Refman.doc, and I quote:
"type integer must be atoms with integer values
from -1073741824 to +1073741823 inclusive."

Thus, the largest value testnum2 can be is:
testnum2 = #3FFFFFFF

Hope this clarification helps. Obviously, this limitation is
related to the attempt to use #FFFFFFFF as equivalent to -1.


Terry Constant
constant at flash.net

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

Search



Quick Links

User menu

Not signed in.

Misc Menu