edit

Kenneth Brody kenbrody at spamcop.net
Fri Jul 24 11:16:24 PDT 2009


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.

-- 
Kenneth Brody


More information about the Filepro-list mailing list