Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.javascript > #38214
| Newsgroups | comp.lang.javascript |
|---|---|
| Date | 2020-02-27 06:02 -0800 |
| References | <2e6b89f4-5561-43ab-8bc0-7d5c24f96db5@googlegroups.com> |
| Message-ID | <cff02c43-bb87-468a-a3bd-a27f71129dbc@googlegroups.com> (permalink) |
| Subject | Re: Arithmetic Accuracy Question |
| From | Julio Di Egidio <julio@diegidio.name> |
On Thursday, 27 February 2020 13:08:45 UTC+1, dr.j.r...@gmail.com wrote:
> Am I entitled to say that, script using IEEE Doubles, all the variables
> will take the infinite-accuracy values?
Of course not, double is not arbitrary ("infinite") precision.
> And, does currently predominantly-used JavaScript natively have
> greater-precision types of numbers, such as 64-bit unsigned
> integers?
As far as I know, it's all double precision floating point in JS. But I
haven't checked with the spec: others may be able to be more definitive on
this (whether the runtime is allowed to leverage integers up to a certain
point, in which case it would certainly use int64 on 64 bit machines).
> If so, recommended URL(s)?
Look up javascript arbitrary precision / arbitrary integers and rationals.
I know there are few libraries around, some even well established, that
offer you that functionality. Performances are generally poor though,
as it is all coded in JS itself. Another approach and interesting search
to do would be solutions that leverage web assembler or similar. Look it
up and let us know... ;)
Julio
Back to comp.lang.javascript | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Arithmetic Accuracy Question dr.j.r.stockton@gmail.com - 2020-02-27 04:08 -0800
Re: Arithmetic Accuracy Question Julio Di Egidio <julio@diegidio.name> - 2020-02-27 06:02 -0800
Re: Arithmetic Accuracy Question "Michael Haufe (TNO)" <tno@thenewobjective.com> - 2020-02-27 06:29 -0800
Re: Arithmetic Accuracy Question Julio Di Egidio <julio@diegidio.name> - 2020-02-27 06:39 -0800
Re: Arithmetic Accuracy Question "Michael Haufe (TNO)" <tno@thenewobjective.com> - 2020-02-27 07:49 -0800
Re: Arithmetic Accuracy Question Julio Di Egidio <julio@diegidio.name> - 2020-02-27 08:00 -0800
Re: Arithmetic Accuracy Question "Michael Haufe (TNO)" <tno@thenewobjective.com> - 2020-02-27 08:20 -0800
Re: Arithmetic Accuracy Question Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2020-02-27 22:54 +0100
Re: Arithmetic Accuracy Question Arno Welzel <usenet@arnowelzel.de> - 2020-02-28 09:24 +0100
Re: Arithmetic Accuracy Question "Michael Haufe (TNO)" <tno@thenewobjective.com> - 2020-02-28 06:48 -0800
Re: Arithmetic Accuracy Question John G Harris <niam@jghnorth.org.uk.invalid> - 2020-02-28 08:32 +0000
Re: Arithmetic Accuracy Question Arno Welzel <usenet@arnowelzel.de> - 2020-02-28 09:20 +0100
Re: Arithmetic Accuracy Question "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2020-02-28 11:06 +0100
Re: Arithmetic Accuracy Question dr.j.r.stockton@gmail.com - 2020-03-26 12:04 -0700
Re: Arithmetic Accuracy Question "Michael Haufe (TNO)" <tno@thenewobjective.com> - 2020-03-26 13:17 -0700
Re: Arithmetic Accuracy Question dr.j.r.stockton@gmail.com - 2020-03-26 11:24 -0700
csiph-web