Path: csiph.com!v102.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: Merge indexes.. Date: Thu, 21 May 2015 15:52:18 +0100 Organization: A noiseless patient Spider Lines: 13 Message-ID: <87a8wym199.fsf@bsb.me.uk> References: <143762f6-417f-4f3f-82d5-272939e581d9@googlegroups.com> <87h9r7o7gw.fsf@bsb.me.uk> <3972519.ny49QEeFJO@PointedEars.de> <1741822.HK0jiq3ONr@PointedEars.de> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: mx02.eternal-september.org; posting-host="017616aa25f81ec581c44d76d61ba2f3"; logging-data="19541"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18L0j1z+OttbDoAhRGytSJW9OlUMCg1Dh4=" Cancel-Lock: sha1:xjIT9ljxmyrE8tkMq6LZ7PPgz08= sha1:D/BEFDIBlETptL+8ezHDnNNptWA= X-BSB-Auth: 1.b6802bdfeaa6148da416.20150521155218BST.87a8wym199.fsf@bsb.me.uk Xref: csiph.com comp.lang.javascript:27788 jonas.thornvall@gmail.com writes: > Well Evertjan if your array hold and concatenate/merge more than 10 > digits, an integer won't hold them and you have problem with overflow? Integers are unbounded and don't overflow. ECMAScript uses floating point to represent numbers and can store exact integers up to 9007199254740992 which is more than 10 digits. Arrays of digits of any length can be exactly concatenating in ECMAScript provided they have enough leading zeros. -- Ben.