Hello All,

I have a file consisting of lines in the following format:

"23123+34234+234234-23423+3-"

ie, n digits followed by a sign etc etc.

The only way i've been able to extract the data into a series is to do two
replaces, replacing "+" by "+ " and "-" by "- " and then parsing it using
the space as a delimiter. I can't use the sign as a delimiter because that
only returns the value and not the sign. 

My first question is, should parse allow the delimited character to be
optionally returned by way of a refinement?? In this case the sign is a
delimiter but also an integral part of the data.

The other problem i had was once i had the data in the form "123+", i
wasn't able to convert it to decimal, because the sign was at the end and
not the beginning, so i had to write code to move it.
Do people think that decimal and integer should be modified to allow for a
optional sign at the end??

Thanks.

Mike. 


Reply via email to