Thanks, though I'm not sure that is true, and I can't take credit.
Somewhere out on the web Toby Thurston had a page dedicated to Rexx
one-liners, which I found most inspiring for this sort of thing. I just
copied his style. Sadly, his page seems to have been taken down now.
Jon
On 14 March 20
You guys are so much better programmers than I am. Your code is so much
simpler than what I would have come up with. Thanks.
Bruce
On Mar 14, 2012, at 2:14 AM, Sahananda (Jon) Wolfers wrote:
> Looks good to me - I defer to Chip.
>
> Maybe we should have a PL/1 compatibility class in the rel
Take a look at the SVN Incubator. In there you will find a package
(ZabrodskyAAT) that performs all these functions and more.
David Ashley
On 03/13/2012 05:23 PM, Sanford Geiger wrote:
I was wondering when OOREXX would have the following built-in
functions which have been always available i
Looks good to me - I defer to Chip.
Maybe we should have a PL/1 compatibility class in the release, that calls
the rxmath library and has compatible input and output for the 'missing'
functions.
The sort of job that someone with a little ooRexx and some PL/1 experience
(or a manual) could quite e
Rats.
I came up with this but didn't get it posted quickly enough to beat Jon:
::routine ceil
return arg(1) % 1 + 1 - (arg(1) < 0)
::routine floor
return arg(1) % 1 - (arg(1) < 0)
which requires fewer function invocations (none if the value is in a
variable) yet still demonstrates
ed the Floor function, but I may not need
> Ceil. I do thank you all for your time.
>
> ** **
>
> *From:* CVBruce [mailto:cvbr...@gmail.com]
> *Sent:* Tuesday, March 13, 2012 7:38 PM
> *To:* Open Object Rexx Developer Mailing List
> *Subject:* Re: [Oorexx-devel] Missin
y. I do need the Floor function, but I may not need Ceil.
> I do thank you all for your time.
>
> From: CVBruce [mailto:cvbr...@gmail.com]
> Sent: Tuesday, March 13, 2012 7:38 PM
> To: Open Object Rexx Developer Mailing List
> Subject: Re: [Oorexx-devel] Missing built-in fu
Developer Mailing List
Subject: Re: [Oorexx-devel] Missing built-in functions in ooRexx
If you have ooRexx 4, then you have the math functions. See the document
named rxmath for instructions on its use. There should be a librxmath
library or dll somewhere.
Bruce
On Mar 13, 2012, at 4:28 PM
. I must have
> overlooked them and you are right about CEIL.
>
>
> From: CVBruce [mailto:cvbr...@gmail.com]
> Sent: Tuesday, March 13, 2012 7:17 PM
> To: Open Object Rexx Developer Mailing List
> Subject: Re: [Oorexx-devel] Missing built-in functions in ooRexx
>
>
fine. I
should have thought of that. Thank you.
From: Sahananda (Jon) Wolfers [mailto:sahana...@windhorse.biz]
Sent: Tuesday, March 13, 2012 6:37 PM
To: Open Object Rexx Developer Mailing List
Subject: Re: [Oorexx-devel] Missing built-in functions in ooRexx
I've never used floor or cei
ould have thought of that. Thank you.
>
> From: Sahananda (Jon) Wolfers [mailto:sahana...@windhorse.biz]
> Sent: Tuesday, March 13, 2012 6:37 PM
> To: Open Object Rexx Developer Mailing List
> Subject: Re: [Oorexx-devel] Missing built-in functions in ooRexx
>
> I've ne
CEIL determines the smallest integer value greater than or equal to x, and
assigns this value to the result.
FLOOR returns the largest integer value less than or equal to x.
BOOL returns a bit string that is the result of the Boolean operation z, on x
and y. The length of the result is equal to
: Open Object Rexx Developer Mailing List
Subject: Re: [Oorexx-devel] Missing built-in functions in ooRexx
I've never used floor or ceil, so not sure how they behave with negative
numbers, but would this do?
::routine floor public
return arg(1)%1
::routine ceil public
return arg(1
I've never used floor or ceil, so not sure how they behave with negative
numbers, but would this do?
::routine floor public
return arg(1)%1
::routine ceil public
return arg(1)%1+1
The trig functions have always been there in the ooRexx maths package
I don't know what the BOOL function does.
Jon
14 matches
Mail list logo