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 2012 14:17, CVBruce <cvbr...@gmail.com> wrote:
> 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 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 easily contribute.
>
> Jon
>
> On 14 March 2012 07:24, Chip Davis <c...@aviatrexx.com> wrote:
>
>> 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 the elegance of Rexx operator evaluation.
>>
>> -Chip-
>>
>> On 3/14/12 06:57 Sahananda (Jon) Wolfers said:
>> > I was afraid that might be the case. Suggested revised routines below
>> > Jon
>> > *
>> > *
>> > *::routine floor
>> > *
>> > *return arg(1)%1 - (arg(1) \= abs(arg(1)))
>> > *
>> > *
>> > *
>> > *::routine ceil
>> > *
>> > *return arg(1)%1 + (arg(1) = abs(arg(1)))
>> > *
>> >
>> >
>> >
>> >
>> > On 14 March 2012 04:46, CVBruce <cvbr...@gmail.com
>> > <mailto:cvbr...@gmail.com>> wrote:
>> >
>> > I think that floor is wrong too. FLOOR(-2.1) => -3 where as -2.1%1
>> > => -2, I believe. I would have to try it out to be sure.
>> >
>> > Bruce
>> >
>> > On Mar 13, 2012, at 5:13 PM, Sanford Geiger <
>> sanford.gei...@live.com
>> > <mailto:sanford.gei...@live.com>> wrote:
>> >
>> >> I just realized that all the functions are already there. They are
>> >> just documented separately. 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 <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 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, Sanford Geiger wrote:____
>> >>
>> >>
>> >>
>> >> ____
>> >>
>> >> The BITAND, BITOR, and BITXOR are the same as BOOL. Thankx. I must
>> >> have overlooked them and you are right about CEIL.____
>> >>
>> >> ____
>> >>
>> >> ____
>> >>
>> >> *From:* CVBruce [mailto:cvbr...@gmail.com]
>> >> <mailto:[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____
>> >>
>> >> ____
>> >>
>> >> Have you looked at the BITAND BITOR, and BITXOR built-in
>> >> functions?____
>> >>
>> >> ____
>> >>
>> >> Bruce____
>> >>
>> >> On Mar 13, 2012, at 3:52 PM, Sanford Geiger wrote:____
>> >>
>> >>
>> >>
>> >>
>> >> ____
>> >>
>> >> Ok. How can I download the math package. Bool is a Boolean
>> >> function (i.e. ANDing or ORing using a bit mask). Your Floor and
>> >> Ceil routines are fine. I should have thought of that. Thank
>> you.____
>> >>
>> >> ____
>> >>
>> >> *From:* Sahananda (Jon) Wolfers [mailto:sahana...@windhorse.biz]
>> >> <mailto:[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 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____
>> >>
>> >> On 13 March 2012 22:23, Sanford Geiger <sanford.gei...@live.com
>> >> <mailto:sanford.gei...@live.com>> wrote:____
>> >>
>> >> ____
>> >>
>> >> I was wondering when OOREXX would have the following built-in
>> >> functions which have been always available in PL/I:____
>> >>
>> >> FLOOR____
>> >>
>> >> CEIL____
>> >>
>> >> SIN____
>> >>
>> >> COS____
>> >>
>> >> ASIN____
>> >>
>> >> ACOS____
>> >>
>> >> TAN____
>> >>
>> >> ATAN____
>> >>
>> >> BOOL____
>> >>
>> >> ____
>> >>
>> >> ____
>> >>
>> >>
>> >>
>> ------------------------------------------------------------------------------
>> >> Keep Your Developer Skills Current with LearnDevNow!
>> >> The most comprehensive online learning library for Microsoft
>> >> developers
>> >> is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3,
>> >> MVC3,
>> >> Metro Style Apps, more. Free future releases when you subscribe
>> now!
>> >> http://p.sf.net/sfu/learndevnow-d2d
>> >> _______________________________________________
>> >> Oorexx-devel mailing list
>> >> Oorexx-devel@lists.sourceforge.net
>> >> <mailto:Oorexx-devel@lists.sourceforge.net>
>> >> https://lists.sourceforge.net/lists/listinfo/oorexx-devel____
>> >>
>> >> ____
>> >>
>> >>
>> ------------------------------------------------------------------------------
>> >> Keep Your Developer Skills Current with LearnDevNow!
>> >> The most comprehensive online learning library for Microsoft
>> >> developers
>> >> is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3,
>> >> MVC3,
>> >> Metro Style Apps, more. Free future releases when you subscribe
>> now!
>> >>
>> http://p.sf.net/sfu/learndevnow-d2d_______________________________________________
>> >> Oorexx-devel mailing list
>> >> Oorexx-devel@lists.sourceforge.net
>> >> <mailto:Oorexx-devel@lists.sourceforge.net>
>> >> https://lists.sourceforge.net/lists/listinfo/oorexx-devel____
>> >>
>> >> ____
>> >>
>> >>
>> ------------------------------------------------------------------------------
>> >> Keep Your Developer Skills Current with LearnDevNow!
>> >> The most comprehensive online learning library for Microsoft
>> >> developers
>> >> is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3,
>> >> MVC3,
>> >> Metro Style Apps, more. Free future releases when you subscribe
>> now!
>> >>
>> http://p.sf.net/sfu/learndevnow-d2d_______________________________________________
>> >> Oorexx-devel mailing list
>> >> Oorexx-devel@lists.sourceforge.net
>> >> <mailto:Oorexx-devel@lists.sourceforge.net>
>> >> https://lists.sourceforge.net/lists/listinfo/oorexx-devel____
>> >>
>> >> __ __
>> >>
>> >>
>> ------------------------------------------------------------------------------
>> >> Virtualization & Cloud Management Using Capacity Planning
>> >> Cloud computing makes use of virtualization - but cloud computing
>> >> also focuses on allowing computing to be delivered as a service.
>> >> http://www.accelacomm.com/jaw/sfnl/114/51521223/
>> >> _______________________________________________
>> >> Oorexx-devel mailing list
>> >> Oorexx-devel@lists.sourceforge.net
>> >> <mailto:Oorexx-devel@lists.sourceforge.net>
>> >> https://lists.sourceforge.net/lists/listinfo/oorexx-devel
>> >
>> >
>> ------------------------------------------------------------------------------
>> > Virtualization & Cloud Management Using Capacity Planning
>> > Cloud computing makes use of virtualization - but cloud computing
>> > also focuses on allowing computing to be delivered as a service.
>> > http://www.accelacomm.com/jaw/sfnl/114/51521223/
>> > _______________________________________________
>> > Oorexx-devel mailing list
>> > Oorexx-devel@lists.sourceforge.net
>> > <mailto:Oorexx-devel@lists.sourceforge.net>
>> > https://lists.sourceforge.net/lists/listinfo/oorexx-devel
>> >
>> >
>> >
>> > ------------------------------------------------------------------------
>> >
>> >
>> ------------------------------------------------------------------------------
>> > Virtualization & Cloud Management Using Capacity Planning
>> > Cloud computing makes use of virtualization - but cloud computing
>> > also focuses on allowing computing to be delivered as a service.
>> > http://www.accelacomm.com/jaw/sfnl/114/51521223/
>> >
>> >
>> > ------------------------------------------------------------------------
>> >
>> > _______________________________________________
>> > Oorexx-devel mailing list
>> > Oorexx-devel@lists.sourceforge.net
>> > https://lists.sourceforge.net/lists/listinfo/oorexx-devel
>>
>>
>> ------------------------------------------------------------------------------
>> Virtualization & Cloud Management Using Capacity Planning
>> Cloud computing makes use of virtualization - but cloud computing
>> also focuses on allowing computing to be delivered as a service.
>> http://www.accelacomm.com/jaw/sfnl/114/51521223/
>> _______________________________________________
>> Oorexx-devel mailing list
>> Oorexx-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/oorexx-devel
>>
>
>
> ------------------------------------------------------------------------------
> Virtualization & Cloud Management Using Capacity Planning
> Cloud computing makes use of virtualization - but cloud computing
> also focuses on allowing computing to be delivered as a service.
>
> http://www.accelacomm.com/jaw/sfnl/114/51521223/_______________________________________________
> Oorexx-devel mailing list
> Oorexx-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/oorexx-devel
>
>
>
>
> ------------------------------------------------------------------------------
> Virtualization & Cloud Management Using Capacity Planning
> Cloud computing makes use of virtualization - but cloud computing
> also focuses on allowing computing to be delivered as a service.
> http://www.accelacomm.com/jaw/sfnl/114/51521223/
> _______________________________________________
> Oorexx-devel mailing list
> Oorexx-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/oorexx-devel
>
>
------------------------------------------------------------------------------
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
_______________________________________________
Oorexx-devel mailing list
Oorexx-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/oorexx-devel