I think you're trying to simplify the wrong thing.
What are they doing with this number?
For example if you have
Then GetXFactor could decide if it's stored in a datastructure, file, etc.
Everyplace it's called wouldn't have to be changed just because of how
it's physically stored.
But coding all the places that use GetXFactor to decide the length and
precision will come back to haunt you.
Then GetXFactor could (if retrieving from a data area) simply tell it the
data area is *DEC and get it from there. But, if you're storing multiple
things in the data area and the 'ForCurrencyConversion' is in bytes x to
y, and you want to convert that substring from character to decimal then
it could handle that also by any number of ways:
- overlapping data structures.
This mailing list archive is Copyright 1997-2019 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