[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]
st: RE: reading numbes with trailing minus sign
I would read this in as a string and then
replace y = substr(y,-1,1) + substr(y,1,length(y)-1) if substr(y,-1,1) == "-"
destring y, replace
> Suppose I have raw data where minus signs are in a trailing
> position. Thus,
> for example, instead of
> -12, you have
> Is there a direct way to read this? Or is there a program
> out there to
> handle it? I can write code to handle it, but I just wonder
> if there is
> anything I'm overlooking or if someone already has done it.
* For searches and help try: