× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



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.

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.