[Jprogramming] Comma for every three digits

Oleg Kobchenko olegykj at yahoo.com
Wed Jan 25 23:39:34 HKT 2006


or

   (#!.','~ ((j.~ <&2)@{.&(#:8b11111110)@-)@# )~@": 1234567
1,234,567


--- Oleg Kobchenko <olegykj at yahoo.com> wrote:

>    (#!.','~ (#&1 j. {.&(#:2396744)@-)@#)~@": 1234567
> 1,234,567
> 
> 
> --- June Kim <juneaftn at gmail.com> wrote:
> 
> >    format=:(#~ ~:&' ')@|.@(([ , ',' , ])/)@:>@(_3&(<\))@|.@":
> >    format 1234567
> > 1,234,567
> > 
> > I think there would be a much better approach. I'd appreciate your suggestions.
> > 
> > June
> 
> 
> 
> __________________________________________________
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam protection around 
> http://mail.yahoo.com 
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
> 


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 


More information about the Programming mailing list