Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.javascript > #38224

Re: Arithmetic Accuracy Question

Newsgroups comp.lang.javascript
Subject Re: Arithmetic Accuracy Question
From "Evertjan." <exxjxw.hannivoort@inter.nl.net>
References <2e6b89f4-5561-43ab-8bc0-7d5c24f96db5@googlegroups.com> <2a154a66-7f18-4c67-b6e9-ffe1f9b5d395@googlegroups.com> <77eb2109-61df-4eba-b5b6-78a494d3d5f8@googlegroups.com> <hbs0q2Ftv5jU4@mid.individual.net>
Date 2020-02-28 11:06 +0100
Message-ID <XnsAB7170F1785C4eejj99@194.109.6.166> (permalink)

Show all headers | View raw


Arno Welzel <usenet@arnowelzel.de> wrote on 28 Feb 2020 in 
comp.lang.javascript:

> These are outdated. Also see here: <https://caniuse.com/#search=bigint>

So the [google Chrome-] answer to John is: BigInt()

<https://v8.dev/features/bigint>

const max = BigInt(Number.MAX_SAFE_INTEGER);
const two = 2n;
const result = max + two;
console.log(result); // 9007199254740993n

-- 
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)

Back to comp.lang.javascript | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


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