Re: Strings and the like.

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

Oops,  My mind must really be going.  Yes,  I meant to return 0 if not
equal.

        Lucius L. Hilley III
        lhilley at cdc.net
+----------+--------------+--------------+
| Hollow   | ICQ: 9638898 | AIM: LLHIII  |
|  Horse   +--------------+--------------+
| Software | http://www.cdc.net/~lhilley |
+----------+-----------------------------+


> ---------------------- Information from the mail
header -----------------------
> Sender:       Euphoria Programming for MS-DOS
<EUPHORIA at LISTSERV.MUOHIO.EDU>
> Poster:       Lewis Townsend <keroltarr at HOTMAIL.COM>
> Subject:      Re: Strings and the like.
> --------------------------------------------------------------------------
-----
>
> 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