Re: TIB: Re: int...
[Prev][Next][Index][Thread]
Re: TIB: Re: int...
> In a message dated 98-03-11 18:17:17 EST, you write:
>
> << how do you use int so it goes up?
> like 1.2 returns 2. >>
>
> Try, int(number+.5,0
" close, but no cigar. that would still display 1. you need to use
int(num+1) or round(num+.5,0)"
oops! i need to correct myself. this would work, except 1.0 would end
up as 2, 2.0 as 3, etc.
int(number + ( int(number+1) [not =] int(number) ))
or, for those of you who are picky about you closing paren.,
int(number+(int(number+1[not =]int(number
this should work.
-brian ash
-brian@communityonline.net
References: