TIB: Re:
[Prev][Next][Index][Thread]
TIB: Re:
1.2/->/A
If fPart(A)>0 if there is a decimal ipart is in
[2nd][math]somthing or other
Then
1+iPart(A)/->/ A take off decimal(like int but returns -1 when given -1.3
instead of -2)
Else
int A/->/A no decimal, don't need ot add 1
End
-----Original Message-----
From: CallMe Keroppi <m_keroppi@hotmail.com>
To: ti-basic@lists.ticalc.org <ti-basic@lists.ticalc.org>
Date: Wednesday, March 11, 1998 5:17 PM
>
>Keep in mind, I'm using an 83; but I think that they are all the same.
>int( will give you the integer. For example; int(1.2 will return 1.
>int(1.9 will also return a 1. However, round will do just that -
>round. round(1.2,0 [round 1.2 to zero decimal places] will return a
>1. round(1.9,0 will return a 2. When using round(, any decimal that
>is .5 or up will round UP.
>
>This is kind of related but how do you use int so it goes up?
>like 1.2 returns 2.
>
>_________________________________
>
>______________________________________________________
>Get Your Private, Free Email at http://www.hotmail.com
>
Follow-Ups: