Anssi Seppälä wrote:
> Will there be a day when it is possible modify the operation so
> that dots are ignored and commas are respected as decimal
> delimiters?
 
   dotcomma=:(',.',a.) {~ ('.,',a.)&i.
   _1234 ". dotcomma '3.141.592'
3141592
 
For that matter:
   >:&.(_&". :.":)&.dotcomma '1.234,56'
1235,56
 
That said: in my experience this kind of "internationalization"
tends to make data non-portable.  What really matters is not
the nationality of the system reading the data but of the
system which generated the data.  In complicated self-identifying
file formats, that can work, but for ordinary text it's probably
best to use a well established default and leave the treatment
of the other cases to human judgement (which is what J does).
 
-- 
Raul
 
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to