Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!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: Date arithmetic Date: Wed, 19 Nov 2014 19:13:04 +0000 Organization: A noiseless patient Spider Lines: 26 Message-ID: <877fyr3sxr.fsf@bsb.me.uk> References: <111120142237479787%timstreater@greenbee.net> <6814026.8sujcrue1K@PointedEars.de> <5592bc20-5fa3-4b2d-8534-1c81d62c31a5@googlegroups.com> <5371045.XxPr97Xf0d@PointedEars.de> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: mx02.eternal-september.org; posting-host="017616aa25f81ec581c44d76d61ba2f3"; logging-data="10333"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18onL6cCjJ4dVW8YYi9fTJlzvKwn6Imed0=" Cancel-Lock: sha1:WORkivvVcXycUGS3aHgJ7mDPW5E= sha1:l3mILJyAF9K+cl2eGrTG28hVTlA= X-BSB-Auth: 1.455cd88668788d96c864.20141119191304GMT.877fyr3sxr.fsf@bsb.me.uk Xref: csiph.com comp.lang.javascript:26165 "Evertjan." writes: > Gene Wirchenko wrote on 19 nov 2014 in > comp.lang.javascript: > >> On Wed, 19 Nov 2014 17:52:40 +0100, "Christoph M. Becker" >> wrote: >> >> [snip] >> >>>ACK -- assuming that there are no implementation errors. I rarely do >>>float calculations in ECMAScript implementations, so I don't know if >>>this assumption is reasonable. Probably it is. >> >> Since it is the only number type available for variables, > > What about integers? ECMAScript does not have a separate integer type. You can represent any integer in (2^53, 2^53) exactly (and zero twice!) using the built-in Number type, but you are still using a floating point type as far as the language definition goes. -- Ben.