Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.fsmpi.rwth-aachen.de!newsfeed.straub-nv.de!eternal-september.org!feeder.eternal-september.org!mx02.eternal-september.org!.POSTED!not-for-mail From: Ben Bacarisse Newsgroups: comp.lang.javascript Subject: Re: Best search algorithm to find a condition within a range. Date: Thu, 09 Apr 2015 14:49:57 +0100 Organization: A noiseless patient Spider Lines: 16 Message-ID: <877ftl2yyi.fsf@bsb.me.uk> References: <87vbh8yvgv.fsf@bsb.me.uk> <777f7633-724b-442e-864b-d6484c5e87cf@googlegroups.com> <87pp7gysv5.fsf@bsb.me.uk> <2186a589-be06-4453-affc-3c84f9e48379@googlegroups.com> <87egnwymxr.fsf@bsb.me.uk> <2016084.ADp8TKvx9G@PointedEars.de> <5902185.dpbNY2YNC7@PointedEars.de> <1936096.bgrWbIOXpn@PointedEars.de> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: mx02.eternal-september.org; posting-host="017616aa25f81ec581c44d76d61ba2f3"; logging-data="18351"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/L6LeFduoSLqV8WD0C3B1LlMvqpyx8ias=" Cancel-Lock: sha1:zPP7yPyJv7cPrZ/TRkdolqqDy1c= sha1:QbawRJKYqBweCKrkISjoJCqESUg= X-BSB-Auth: 1.21672cc3f952875076bd.20150409144957BST.877ftl2yyi.fsf@bsb.me.uk Xref: csiph.com comp.lang.javascript:27264 "Evertjan." writes: > "Christoph M. Becker" wrote on 09 apr 2015 in > comp.lang.javascript: > >> Why would someone try to do integer arithmetic on strings? I would >> suggest to use a large base, where each digit is an element of an array. >> IIRC Ben (Bacarisse) has already suggest this. > > Quite, but that was the premisse of the OP, I seem to remember. No, the OP was talking about arbitrary bases using an array to store the "digits". I'm not sure when strings got in on the act. -- Ben.