Path: csiph.com!optima2.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!1.eu.feeder.erje.net!eternal-september.org!feeder.eternal-september.org!mx02.eternal-september.org!.POSTED!not-for-mail From: Ben Bacarisse Newsgroups: comp.lang.javascript Subject: Re: Bignumber conversion and arithmetic on unsigned operand pairs using +,-,* now work in anybase. Date: Mon, 22 Jun 2015 20:52:19 +0100 Organization: A noiseless patient Spider Lines: 26 Message-ID: <871th3ikr0.fsf@bsb.me.uk> References: <43d7c692-c4f0-4b88-8bb0-35f621516925@googlegroups.com> <62d5c8c6-47dc-45f0-928c-d5e47ac41ac1@googlegroups.com> <1d378cba-f36f-418f-b15b-98115ae0f0fd@googlegroups.com> <87a8vskcyp.fsf@bsb.me.uk> <4723ff16-0052-41e3-8d3a-6c249345696e@googlegroups.com> <87twu0iogk.fsf@bsb.me.uk> <3774f4ba-032f-4ecb-8542-355beb009200@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Injection-Info: mx02.eternal-september.org; posting-host="017616aa25f81ec581c44d76d61ba2f3"; logging-data="5635"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+Px9XcRw+cPVXxIb7jlml9v7W66xxFgD4=" Cancel-Lock: sha1:NsnId5uqjHB7WBcmavJnhpp1l2A= sha1:CXizOuIVxt7hG1xKRv5KJ+Hh4OU= X-BSB-Auth: 1.07e17ce1157549b9bb92.20150622205219BST.871th3ikr0.fsf@bsb.me.uk Xref: csiph.com comp.lang.javascript:28142 jonas.thornvall@gmail.com writes: > Den måndag 22 juni 2015 kl. 02:20:01 UTC+2 skrev Ben Bacarisse: >> jonas.thornvall@gmail.com writes: >> > And i who thought you would be impressed by the nifty way i do the >> > baseconversion. >> > It is probalistic. >> >> The only curious things is why you don't do it the simple way. > Well if your simple way really did work, It does. > why do you think there is no > other javascript or program on the net that can transform a 100 digit > number into an 8 digit base. https://github.com/silentmatt/javascript-biginteger/blob/master/biginteger.js It does not do exactly what you asked for, but the reasons why it does not do that are worth considering. -- Ben.