[TIB] Re: Integral Variables...


[Prev][Next][Index][Thread]

[TIB] Re: Integral Variables...



I saw this suggestion earlier...

While that might confine the results to integral values, it wouldn't cause
the operations to use integer types.

Read: No speed increase.

----- Original Message -----
From: "Jeremy Butcher" <jtkirk86@bellsouth.net>
To: <ti-basic@lists.ticalc.org>
Sent: Sunday, April 13, 2003 6:41 PM
Subject: [TIB] Re: Integral Variables...


> Have you tried in the prgm setting the float to 0 so it cant  be a
> decimal?
>
> -----Original Message-----
> From: ti-basic-bounce@lists.ticalc.org
> [mailto:ti-basic-bounce@lists.ticalc.org] On Behalf Of Robert Mohr
> Sent: Tuesday, April 08, 2003 7:05 PM
> To: ti-basic@lists.ticalc.org
> Subject: [TIB] Re: Integral Variables...
>
> There isn't a way in BASIC to do only integer math, except by using
> int(), which doesn't help you much.  Look at http://tigcc.ticalc.org/
>
> Eric Peterson wrote:
> > TI-89 question.  And, if it's relevant, I have AMS 2.08 up and running
> on my
> > calculator.
> >
> > I would like to force several of my variables into being
> integers...under
> > BASIC.  Why?  Because floating point calcs are nasty and long when
> you're
> > working purely with integers.  Does anyone know of a way to accomplish
> this?
> >
> > Hopefully,
> >     Eric
> >
> >
> >
> >
>
> --
> Robert Mohr
> mohr.42@osu.edu
> mohrr@cis.ohio-state.edu
>
>
>




References: