Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!weretis.net!feeder1.news.weretis.net!news.solani.org!.POSTED!not-for-mail From: Thomas 'PointedEars' Lahn Newsgroups: comp.lang.javascript Subject: Re: function to get frequencies of a char array Supersedes: <4607907.rTd3HMPDkd@PointedEars.de> Date: Tue, 27 Jan 2015 01:05:33 +0100 Organization: PointedEars Software (PES) Lines: 39 Message-ID: <10619254.HIfIgzSeSj@PointedEars.de> References: <26839541.MRbOrngyXZ@PointedEars.de> <87twzgl0aq.fsf@bsb.me.uk> <2697158.aGRKFDBAEn@PointedEars.de> Reply-To: Thomas 'PointedEars' Lahn Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8Bit X-Trace: solani.org 1422317170 3532 eJwFwYEBwCAIA7CXRqFFznEo/59gQpepM0QFh3OPaYIH32+1tRfKwtEXyq4Apq9vFpiey+cBFBEQeQ== (27 Jan 2015 00:06:10 GMT) X-Complaints-To: abuse@news.solani.org NNTP-Posting-Date: Tue, 27 Jan 2015 00:06:10 +0000 (UTC) User-Agent: KNode/4.14.2 Cancel-Key: sha1:vwpGHsM6oQcEM7q8alIZWkjHKUI= X-User-ID: eJwNykcBwDAMBDBKHvE5hePJH0Kqt0zBKD8wHFtbhk4UifRNbdblwsgEbD2lYoha/vIFYpY66UruhFuz4foDbxcWZQ== Cancel-Lock: sha1:rq9IKIBI1UG97A8SC8L8KSA5zUc= X-NNTP-Posting-Host: eJwFwYkBADAEBLCVqOcYh5b9R2hi4uwX6uZqa+sB4QESxceWoiVbg0Nf3aPpMoaqph7FY/oCDxB3 Xref: csiph.com comp.lang.javascript:26721 Christoph M. Becker wrote: > Evertjan. wrote: >> "Christoph M. Becker" […] wrote […]: >>> The semantic difference I was referring to is the internal call of >>> ToInt32()[1]. Compare: >>> >>> 1e32 | 0 // => 0 >>> 1e32 || 0 // => 1e+32 >>> >>> [1] >> >> This was about a count, >> in Javascript you cannot >> in a single variable >> count from 0 to 1e32 >> for reasons of […] resolution. > > […] > However, I don't understand what you mean by "resolution". The largest integer that can be represented with IEEE 754 “double precision” floating-point values as used in the ECMAScript Number type such that all smaller integers greater than or equal to ±0 can be represented exactly, is 2⁵³ = 9'007'199'254'740'992 (the mantissa has 52 bits and the leading 1 is implied.) Implementations of ECMAScript Ed. 6 are going to make that value available with the *successor* of the value of the Number.MAX_SAFE_INTEGER property: p. The aforementioned values are approximately 9 × 10¹⁵ ≪ 10³². -- PointedEars FAQ: | SVN: Twitter: @PointedEars2 | ES Matrix: Please do not cc me. / Bitte keine Kopien per E-Mail.