IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

About CEIL and FLOOR in PL/1


IBM Mainframe Forums -> PL/I & Assembler
Post new topic   Reply to topic
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
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: 1104
Location: The Netherlands at Hole 19

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

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

Senior Member


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

PostPosted: Thu Jan 11, 2007 6:44 pm
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
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> PL/I & Assembler

 


Search our Forums:

Back to Top