Path: csiph.com!optima2.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!1.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: Bignumber conversion and arithmetic on unsigned operand pairs using +,-,* now work in anybase. Date: Tue, 30 Jun 2015 11:11:46 +0100 Organization: A noiseless patient Spider Lines: 17 Message-ID: <87k2ulbj4t.fsf@bsb.me.uk> References: <43d7c692-c4f0-4b88-8bb0-35f621516925@googlegroups.com> <054f05a4-7c6a-4722-8ad4-66240d05b8fd@googlegroups.com> <9e383235-5af7-406a-afdc-c0bb0873dc9a@googlegroups.com> <5591291f$0$2899$e4fe514c@news.xs4all.nl> <782a8f27-612b-47eb-897c-7debb99a5ee7@googlegroups.com> <0c96b541-acbe-4378-99bf-c3f2ac31ac15@googlegroups.com> <290620151826022749%timstreater@greenbee.net> <747f111f-43b3-4c72-ab1a-496c6428b88b@googlegroups.com> <871tgucbfb.fsf@bsb.me.uk> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: mx02.eternal-september.org; posting-host="017616aa25f81ec581c44d76d61ba2f3"; logging-data="22946"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19f0Q6mqLasG1a0f1b2AbIDmra78RGKpAs=" Cancel-Lock: sha1:VVXIhNPC8638zBvtt9nF11in11M= sha1:ooj+eVPI8EQTZmJ0Wyd4ZjXvuk4= X-BSB-Auth: 1.fd25e2f8ad7cbb0452be.20150630111146BST.87k2ulbj4t.fsf@bsb.me.uk Xref: csiph.com comp.lang.javascript:28241 jonas.thornvall@gmail.com writes: > Thank you, for finding the bug Ben, it turned out i did basicly same > thing two times. One of the times was the more general case and that > turned out to do the correct thing. > > jt.node365.se/baseconversion9.html Still looks buggy. Try Ian's example of duplicating the digits in your test number (that's the Ian who posted in reply to your off-topic comp.lang.python post). Python, by the way, is a very good way to test your code. (I used Haskell but that's just because I know Haskell better.) -- Ben.