Path: csiph.com!v102.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: Overflow, integers and strings Date: Mon, 04 May 2015 14:01:37 +0100 Organization: A noiseless patient Spider Lines: 15 Message-ID: <87zj5kebta.fsf@bsb.me.uk> References: <09495c64-e320-46ca-a6d9-b9f0427c7efd@googlegroups.com> <66061bf2-9092-42a5-918e-5a039a53db20@googlegroups.com> <6ca07e69-1694-49c1-93eb-748c44d8ab68@googlegroups.com> <871tj08vrb.fsf@bsb.me.uk> <1997740.h7VUlrh2Em@PointedEars.de> <72e44d34-7f4d-4d32-8304-e73688132274@googlegroups.com> <3770518e-e91f-4368-9a69-cbd2f2461343@googlegroups.com> <87lhh5zmuy.fsf@bsb.me.uk> <9e56ec52-91b5-4e3e-9206-fd970fa69254@googlegroups.com> <2a1bdab8-bc0e-4a82-bce5-37c151ba4b47@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: mx02.eternal-september.org; posting-host="017616aa25f81ec581c44d76d61ba2f3"; logging-data="16816"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19e5SNKrK+2p4Ts/TyjUXvu7DYhgY+rlc0=" Cancel-Lock: sha1:+TNJVAj6D8uwOKQ/zr5070vPQYY= sha1:kF+LVED2o0JQVboqrA41PlovxAs= X-BSB-Auth: 1.1378c6d7bd2e29e9e721.20150504140137BST.87zj5kebta.fsf@bsb.me.uk Xref: csiph.com comp.lang.javascript:27479 jonas.thornvall@gmail.com writes: > This is only an outline / pseudocoe for how the base conversion would > look with bignumb implementation will look. You have to check the > arrays so they contain intergers and not chars, that is probably what > fail in first loop. There is no value in using a bugnum for the base in a bignum implementation. This whole part of the project is a waste of time (unless you just want learn ECMAScript programming but that seems unlikely). -- Ben.