[futurebasic] Re: [FB] long integer arrays

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : November 1998 : Group Archive : Group : All Groups

From: tatewake@... (TJ Grant)
Date: Mon, 2 Nov 1998 20:30:16 -0400
>I think that we've been through this, but I can't remember the answer.
>Are arrays allowed to have long-integer arguments; for example,
>
>
>dim X#(100000)
>
>FOR count& = 1 TO 100000
>     X#(count&) = 1\count&
>NEXT COUNT&
>

I'm not sure what you're trying to get at, but what you're doing is what's
called an integer divide; which chops the decimal region off. You may as
well have said this:
DIM x&(100000)

Now if it's the decimal values you want as well:
X#(count&) = 1/count&

However, if you want just the decimal region:
X#(count&) = 1\count& - 1/count&
will do the trick

HTH



~ Nobody ever says, "I wanna be an STR resource when I grow up." ~

-- TJ Grant (tatewake@...)
Inspired Communications. http://inspired.netstreet.net/
Phone: 407-728-7563