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 that of the longer operand, x or y.
(Which I take to be some sort of bit masking function.)
I think your FLOOR would work, but not your CEIL. CEIL(10.1) => 11, but
CEIL(10) => 10.
Bruce
On Mar 13, 2012, at 3:37 PM, Sahananda (Jon) Wolfers wrote:
> 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> 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
> 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
> 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
https://lists.sourceforge.net/lists/listinfo/oorexx-devel