View previous topic :: View next topic |
Author |
Message |
hisabarish Beginner
Joined: 21 Jun 2005 Posts: 38 Topics: 11
|
Posted: Wed Jul 27, 2005 1:04 am Post subject: How can we display only the integer part? |
|
|
In my report Qty is (43.00). I want to display only the integer part ie., 43 only. How can i display the integer part , with out using the Rounded Option and Editing clauses. Any one pls. give me an logic. _________________ Sabari
Madras |
|
Back to top |
|
|
kolusu Site Admin
Joined: 26 Nov 2002 Posts: 12376 Topics: 75 Location: San Jose
|
Posted: Wed Jul 27, 2005 6:05 am Post subject: |
|
|
Quote: |
How can i display the integer part , with out using the Rounded Option and Editing clauses. Any one pls. give me an logic.
|
hisabarish,
Why do you need a logic when it accomplished by editing characters or defining another variable?
Kolusu _________________ Kolusu
www.linkedin.com/in/kolusu |
|
Back to top |
|
|
slade Intermediate
Joined: 07 Feb 2003 Posts: 266 Topics: 1 Location: Edison, NJ USA
|
Posted: Sat Jul 30, 2005 11:41 pm Post subject: |
|
|
If it's a display data type you can use reference modification:
DISPLAY RPT-QTY(1:2)
Assuming the PIC was 99V99. _________________ Regards, Jack.
"A problem well stated is a problem half solved" -- Charles F. Kettering |
|
Back to top |
|
|
hisabarish Beginner
Joined: 21 Jun 2005 Posts: 38 Topics: 11
|
Posted: Mon Aug 01, 2005 12:40 am Post subject: |
|
|
Hi slade
I used ur logic , Thank for your reply.
Pls. Make sure that is it correct or not.
01 a pic 99v99.
01 b pic 99.
Move a to b. Now the integer part will be stored in "b" right? _________________ Sabari
Madras |
|
Back to top |
|
|
Cogito-Ergo-Sum Advanced
Joined: 15 Dec 2002 Posts: 637 Topics: 43 Location: Bengaluru, INDIA
|
Posted: Mon Aug 01, 2005 1:14 am Post subject: |
|
|
Yes. _________________ ALL opinions are welcome.
Debugging tip:
When you have eliminated all which is impossible, then whatever remains, however improbable, must be the truth.
-- Sherlock Holmes. |
|
Back to top |
|
|
|
|