Path: csiph.com!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!news.musoftware.de!wum.musoftware.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: "Mel Smith" Newsgroups: comp.lang.javascript Subject: Re: Placing 'zeros' in front of a number ? Date: Fri, 22 Jun 2012 08:39:06 -0600 Lines: 23 Message-ID: References: <68f86607-2127-46c8-b59d-a0b010335f32@googlegroups.com> <3542fb54-c108-4730-abd5-07a4192654b2@t20g2000yqn.googlegroups.com> X-Trace: individual.net 00wQtRL7wGZgUg/4EUTYogQ9Jlwbdjq7MvQiw1eWNI15+f9yU6LdpGgpJHTlCM2FWk Cancel-Lock: sha1:dm86MKN9HsaEAvsLw1Uo9MXZevE= X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.5931 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.6157 X-RFC2646: Format=Flowed; Original Xref: csiph.com comp.lang.javascript:14616 The Array.join method is significantly slower than all other techniques shown in all JS engines tested. > In any case I would change your order of arguments since > "len" is in any case a required argument, whereas "ch" can be set to a > default value. Agreed, although I would offer defaults for both of them. Gregor & Scott: Several good choices. I'll pick and test one today. Thanks all ! -Mel Smith