Hi all!
I have a text data file with number fields in 7 character spaces. The rules are:
Right justified
Left "0" pad
If negative, sign is immediately to the left of the most significant digit
For example, the number 126.55 is represented like the following:
0012655 -or its negative counterpart: 0-12655
Invalid examples of the above number:
-012655 1265500 12655 012655
I am having problems coming up with a reliable algorithm to test these conditions. Some, like 1265500 are impossible to test for right justification because it could be a valid representation of 12,655.00
I want to ask here to get orientation from people who have come across such a scenario. Any feedback is welcomed! Thank you for your time. Saga
I need to verify he