edit
Kenneth Brody
kenbrody at spamcop.net
Fri Jul 24 14:29:07 PDT 2009
Kenneth Brody wrote:
> Kroboth, Joe wrote:
>> Hello,
>>
>> Trying to so some importing of an alien file and I'm in need of an edit that would covert fixed length numbers to the standard .2 format.
>>
>> 00000002451873+ to 24518.73
>>
>> 00000000107859- to -1078.59
>>
>> Any help would great.
>
> Sure. "Easy peasy, lemon squeezy" as they say.
>
> ==========
> joe \ [{ !0! }] ( joeneg | joepos )
> joeneg ( {N}"-" ) & ( <"-"> { ( <.> N N !"-"! @ ) | N } )
> joepos ( {N}"+" ) & ( { ( <.> N N !"+"! @ ) | N } )
> ==========
>
> Change the edit names as you see fit.
And, just in case you need to take a filePro ".2" field and put it back into
that format:
unjoe \0\ [{!" "!}] ( (!-! [{N}] !.! N N <->) | [{N}] !.! N N <+> )
--
Kenneth Brody
More information about the Filepro-list
mailing list