Re: Strings and the like.

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

Hello,

Lucius L. Hilley III wrote:

>     What if something like these were built-in?
>
>-----------------------------------
>type whole_number_set(sequence s)
>   for A = 1 to length(s) do
>     if (s[A] = floor(s[A])) then
>       return 0
>     end if
>   end for
>
>   return 1
>end type
>-----------------------------------

dont you mean:
if (s[A] != floor(s[A])) then
-- or     ^
if not (s[A] = floor(s[A])) then
     ^
Correct me if I'm wrong, but dont you only want to return
zero if the char is NOT equal to the char floored?

later,
Lewis Townsend

______________________________________________________
Get Your Private, Free Email at http://www.hotmail.com

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

Search



Quick Links

User menu

Not signed in.

Misc Menu