Thank you for the responses. I have a field of length 5. Based on the
number of integer positions filled, I need to move the decimal positions,
so that I retain the precision to the extent possible.
Ex: In case of 12.3456 , I can go to the precision of 12345 and in the case
of 3895.456, I can go to the precision of 38954.
Regards
Reddy Raja Nama Senior Project Manager, Seneca Global
+91.80088.83258 (mobile)
+91.40. 23548718, 30481900 (main)
+91.40.30481909 (fax)
<
http://www.seneca-global.com/> www.seneca-global.com
P Before printing, think about the environment
DISCLAIMER
The information contained in this eMail is confidential and intended for the
named recipient(s) only. If you are not an intended recipient of this eMail
you must not copy, distribute or take any further action in reliance on it.
You should delete it and notify the sender immediately.
From: Raja Nama [mailto:raja.nama@xxxxxxxxxxxxxxxxx]
Sent: Thursday, September 09, 2010 11:58 AM
To: 'rpg400-l@xxxxxxxxxxxx'
Subject: Need to know how many integer positions are filled in a variable
Dear All,
Let me explain through examples.
Let us say we have a variable WX of length 13,8.
If I have value 123.3567, I need no. of integer positions filled that is 3.
If I have value 1009.78061, I need no. of integer positions filled that
is 4.
Do we have any built in functions to do the same or simple logic will do.
Regards
Reddy Raja Nama
As an Amazon Associate we earn from qualifying purchases.