Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

About CEIL and FLOOR in PL/1

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> PL/I & Assembler
View previous topic :: :: View next topic  
Author Message
naveensnayak

New User


Joined: 27 Nov 2006
Posts: 7
Location: Hyderabad

PostPosted: Thu Jan 11, 2007 1:33 pm    Post subject: About CEIL and FLOOR in PL/1
Reply with quote

Will the sign be considered when using CEIL and FLOOR ?

like CEIL(3.2) = ?
Floor(3.2) = ?

CEIL(-3.2) = ?
Floor(-3.2) = ?

If someone can explain it would be of great help.
Back to top
View user's profile Send private message

Bitneuker

CICS Moderator


Joined: 07 Nov 2005
Posts: 1105
Location: The Netherlands at Hole 19

PostPosted: Thu Jan 11, 2007 3:57 pm    Post subject:
Reply with quote

icon_eek.gif Are you talking about builtin functions?
Back to top
View user's profile Send private message
Phrzby Phil

Active Member


Joined: 31 Oct 2006
Posts: 964
Location: Richmond, Virginia

PostPosted: Thu Jan 11, 2007 6:44 pm    Post subject:
Reply with quote

Why not test rather than ask? This should take you about one minute.
Back to top
View user's profile Send private message
banu

New User


Joined: 09 Aug 2005
Posts: 8
Location: Chennai

PostPosted: Thu Mar 22, 2007 1:15 pm    Post subject:
Reply with quote

CEIL(3.2) = 4
Floor(3.2) = 3

CEIL(-3.2) = -3
Floor(-3.2) = -4
== Ceil would consider the next immediate highest integer whereas floor is reverse..
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> PL/I & Assembler All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:



Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us