 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Charlie Guest
|
Posted: Tue Apr 10, 2007 7:56 am Post subject: Ceiling Function |
|
|
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
|
Posted: Tue Apr 10, 2007 8:13 am Post subject: Re: Ceiling Function |
|
|
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
|
Posted: Tue Apr 10, 2007 6:29 pm Post subject: Re: Ceiling Function |
|
|
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
|
Posted: Tue Apr 10, 2007 6:42 pm Post subject: Re: Ceiling Function |
|
|
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
|
Posted: Tue Apr 10, 2007 7:24 pm Post subject: Re: Ceiling Function |
|
|
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
|
Posted: Wed Apr 11, 2007 4:21 am Post subject: Re: Ceiling Function |
|
|
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 |
|
 |
Powered by phpBB © 2001, 2006 phpBB Group .
|