1. abs function - Reply

John Worthington wrote:

>Okay, one last shot at this:

>function abs(object x)
>return ((x>=0)*2-1)*x
>end function

>This is how I would have done it in C, well, more or less anyways.


Yeah, I like it too, John. Now, tell me, how do you do those objects
in C, more or less?  smile jiri

new topic     » topic index » view message » categorize

2. Re: abs function - Reply

BABOR, JIRI wrote:
> John Worthington wrote:
> >function abs(object x)
> >This is how I would have done it in C, well, more or less anyways.
> Yeah, I like it too, John. Now, tell me, how do you do those objects
> in C, more or less?  smile jiri

Uh, that's the less part?  <grin>

___
_|ohn

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu