BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Ceiling Function

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Students
View previous topic :: View next topic  
Author Message
Charlie
Guest





PostPosted: Tue Apr 10, 2007 7:56 am    Post subject: Ceiling Function Reply with quote



I need to find a function to use in Delphi that is like the ceiling function
in Excel. And it would also allow me to display the result either as a mixed
decimal or mixed number where the fractional part is either in 1/2's, 1/4's,
1/8's, 1/16's or 1/32's.
Thank you.
Charlie
Back to top
Rob Kennedy
Guest





PostPosted: Tue Apr 10, 2007 8:13 am    Post subject: Re: Ceiling Function Reply with quote



Charlie wrote:
Quote:
I need to find a function to use in Delphi that is like the ceiling function
in Excel. And it would also allow me to display the result either as a mixed
decimal or mixed number where the fractional part is either in 1/2's, 1/4's,
1/8's, 1/16's or 1/32's.

You need to find one, or you need to write one? Students don't typically
need to *find* a function unless they're cheating. They're usually
expected to write all their own code. Mine are, anyway. The only other
code they're allowed to use is what they find in their textbook and what
their instructors give them. Does your textbook mention the Ceil system
function?

The first step is to realize that you're asking for two different
things. Don't try to solve them both at once. The first task is a
ceiling function. What, exactly, is it supposed to do? Describing it as
"like Excel's" requires that you know what Excel's function does; can
you be more specific? What does it need to be able to do? (Also, what
does it *not* need to be able to do?)

The other task is to display a number as a mixed numeral. Have you been
given any hints about how you should do that? What's the latest language
feature you've learned about? That's usually a big clue for what you're
supposed to use to solve your homework.

--
Rob
Back to top
Charlie
Guest





PostPosted: Tue Apr 10, 2007 6:29 pm    Post subject: Re: Ceiling Function Reply with quote



Good morning Rob.
I think that I didn't understand that the STUDENTS post were from actual
students. So I goofed, again, ughhhh.
I'll figure out another ng to post to. I continue to think of my self as a
'student'!
But I do want to thank you for responding, otherwise I would continue to
post to wrong group. I'll have to re-post my other question to another
group.
I'll answer your questions in my repost to another group.
Again thanks for helping me.


"Rob Kennedy" <me3 (AT) privacy (DOT) net> wrote in message
news:461b1eda$1 (AT) newsgroups (DOT) borland.com...
Quote:
Charlie wrote:
I need to find a function to use in Delphi that is like the ceiling
function in Excel. And it would also allow me to display the result
either as a mixed decimal or mixed number where the fractional part is
either in 1/2's, 1/4's, 1/8's, 1/16's or 1/32's.

You need to find one, or you need to write one? Students don't typically
need to *find* a function unless they're cheating. They're usually
expected to write all their own code. Mine are, anyway. The only other
code they're allowed to use is what they find in their textbook and what
their instructors give them. Does your textbook mention the Ceil system
function?

The first step is to realize that you're asking for two different things.
Don't try to solve them both at once. The first task is a ceiling
function. What, exactly, is it supposed to do? Describing it as "like
Excel's" requires that you know what Excel's function does; can you be
more specific? What does it need to be able to do? (Also, what does it
*not* need to be able to do?)

The other task is to display a number as a mixed numeral. Have you been
given any hints about how you should do that? What's the latest language
feature you've learned about? That's usually a big clue for what you're
supposed to use to solve your homework.

--
Rob
Back to top
John Herbster
Guest





PostPosted: Tue Apr 10, 2007 6:42 pm    Post subject: Re: Ceiling Function Reply with quote

Charlie wrote:
Quote:
I'll answer your questions in my repost to another group.

Charlie, Tell us which group you are going to.
If you have not decided, may I suggest
borland.public.delphi.language.delphi.general
Rgds, JohnH
Back to top
Charlie
Guest





PostPosted: Tue Apr 10, 2007 7:24 pm    Post subject: Re: Ceiling Function Reply with quote

Thanks John. I posted in borland.public.delphi.database.general. Your
suggestion would have been a better place, though.
Charlie

"John Herbster" <herb-sci1_AT_sbcglobal.net> wrote in message
news:461b9402$1 (AT) newsgroups (DOT) borland.com...
Quote:
Charlie wrote:
I'll answer your questions in my repost to another group.

Charlie, Tell us which group you are going to.
If you have not decided, may I suggest
borland.public.delphi.language.delphi.general
Rgds, JohnH
Back to top
Marc Rohloff [TeamB]
Guest





PostPosted: Wed Apr 11, 2007 4:21 am    Post subject: Re: Ceiling Function Reply with quote

On Tue, 10 Apr 2007 09:29:00 -0400, Charlie wrote:

Quote:
I think that I didn't understand that the STUDENTS post were from actual
students. So I goofed, again, ughhhh.

That is not really the issue Rob had. His concern was with students
who post homework assignments here and want someone to give them the
code they need instead of them figuring it out themselves.

--
Marc Rohloff [TeamB]
marc -at- marc rohloff -dot- com
Back to top
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Students All times are GMT
Page 1 of 1

 
 


Powered by phpBB © 2001, 2006 phpBB Group
.