C# asp.net passing an object with a long property to front end changes it's value I'm building an application with a react.js front-end (although I'm fairly sure that's not relevant to the issue) and an asp.net back-end (targeting net5.0, not sure if that's relevant). When I call to the back-end API, I get back an object that includes, in part, an ID it generated based on the data passed in, that is of type long in C# (a 64 bit int). The behavior that I'm seeing is that the variable in C# and the variable read from the response on the front end are different. They appear to drift after about 16-17 digits. Is this expected? Is there any way to get around it? Code to reproduce / Pictures of what I see: C# [HttpPost] [Route(&quot;test&quot;)] public object TestPassingLongInObject() {     /* actual logic omitted for brevity */      var rv = new     {         DataReadIn = new { /* omitted */ },         ValidationResult = new ValidationResult(),         GeneratedID =  long.Parse($&quot;922337203{new Random().Next(int.MaxValue):0000000000}&quot;) // close to long.MaxValue     };      Console.WriteLine($&quot;ID in C# controller method: {rv.GeneratedID}&quot;);      return rv; }  Console output: ID in C# controller method: 9223372030653055062 Chrome Dev Tools:  When I try to access the ID on the front-end I get the incorrect ID ending in 000 instead of 062. Edit 1: It's been suggested that this is because JavaScript's Number.MAX_SAFE_INTEGER is less than the value I'm passing. I don't believe that is the reason, but perhaps I'm wrong and someone can enlighten me. On the JS side, I'm using BigInt, precisely because the number I'm passing is too large for Number. The issue is before I'm parsing the result to a JS object though (unless Chrome is doing that automatically, leading to the picture referenced in the issue). Edit 2: Based on the answers below, it looks like perhaps JS is parsing the value to a number before I'm parsing it to a BigInt, so I'm still losing precision. Can someone more familiar with the web confirm this?
What is JavaScript's highest integer value that a number can go to without losing precision? Is this defined by the language? Is there a defined maximum? Is it different in different browsers?
I was wondering this today, and my algebra professor didn't know the answer.      Are subgroups of finitely generated groups also finitely generated?    I suppose it is necessarily true for finitely generated abelian groups, but is it true in general?  And if not, is there a simple example of a finitely generated group with a non-finitely generated subgroup?  NOTE:  This question has been merged with another question, asked by an undergraduate.  For an example not involving free groups, please see Andreas Caranti's answer, which was the accepted answer on the merged question. What are some examples of manifolds that do not have boundaries and are not boundaries of higher dimensional manifolds?  Is any $n$-dimensional closed manifold a boundary of some $(n+1)$-dimensional manifold? I have a set of polygons representing administrative districts.  The districts were digitized by hand, and there are small spaces (slivers) between polygons where the polygons should be touching. How can I have the polygons snap together, removing the spaces? When will my device get the Android 5.0 update (Lollipop)? Android 5.0 (Lollipop) was officially announced on October 15th, 2014.  You can review the high-level changes at the  and the announcement on the official .  Of course, not all devices will get this update right away and others won't get it at all. Each manufacturer and carrier often choose to add their custom modifications which tend to delay the official release.  When will each device get Android 5.0, either officially or unofficially, if ever?  See also: How do I use variables in a sed command? I tried the following code to replace QQ with ZZ, but it doesn't do what I want:  var1=QQ sed -i 's/$var1/ZZ/g' $file   However, this code does what I want:  sed -i 's/QQ/ZZ/g' $file   How do I use variables in sed? Did English ever have a word for 'yes' for negative questions? The Germans have doch and the French have si as a word that means "yes" in response to a negative question, such as:     Don't you want some ice-cream?   Yes [I do]!   In English, we only have yes (as far as I know) and further clarification is required in order to be unambiguous.  Did we ever have such a word in English and, if so, what happened to it? If not, given the French and Germanic influences on English, any idea why not? How to install Eclipse C/C++ in Ubuntu 18.04 To clean install Eclipse for C/C++ on Ubuntu 18.04 I tried sudo apt install eclipse eclipse-cdt. It's showing an error, see the log file....  log file..... !SESSION Fri Aug 16 14:39:20 IST 2019 ------------------------------------------ !ENTRY org.eclipse.equinox.launcher 4 0 2019-08-16 14:39:20.065 !MESSAGE Exception launching the Eclipse Platform: !STACK java.lang.ClassNotFoundException: org.eclipse.core.runtime.adaptor.EclipseStarter     at java.base/java.net.URLClassLoader.findClass(URLClassLoader.java:471)     at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:588)     at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:521)     at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:626)     at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)     at org.eclipse.equinox.launcher.Main.run(Main.java:1438)     at org.eclipse.equinox.launcher.Main.main(Main.java:1414) Suppose f(m,n) is a double sequence in $\mathbb R$. Under what condition do we have $\lim\limits_{n\to\infty}\sum\limits_{m=1}^\infty f(m,n)=\sum\limits_{m=1}^\infty \lim\limits_{n\to\infty} f(m,n)$? Thanks! Efficient way to check collision with potentially hundreds of objects I am trying to make a top down shooter that could potentially have hundreds of objects at once at one point. I need to check collision with projectiles, walls, and enemies. I am currently using ArrayLists which probably won't suffice later on and was wondering if someone had a good method or knows a good method for checking all of those objects at once. This is going to be a game for smartphones and is built in java. Any ideas would be great or if you could point me in some direction that would be fantastic.  Thanks in advance! Is there a direct, elementary proof of $n = \sum_{k|n} \phi(k)$? Can python be used to edit a Text Object? That is, can python code replace, for example, a single letter in a Text Object or insert a letter or string into a Text Object.  Note that I'm not talking about replacing a Text Object with some updated string, such as, object.text = "new string". I'm thinking more about having access to the Text cursor (not the mouse cursor) and positioning it on some letter that I'd like to replace.  In other words, I'd like to have the same capability during BGE play that I have when altering a Text Object in the edit mode. R.Java not generated Alert on edit after a downvote The choice of measurement basis on one half of an entangled state affects the other half. Can this be used to communicate faster than light? It is often stated, particularly in popular physics articles and videos, that if one measures a particle A that is entangled with some other particle B, then this measurement will immediately affect the state of the entangled partner.  For example, if Alice and Bob share an entangled pair of electrons and Alice measures her spin in the $x$ direction, then Bob's spin will also end up spinning in that direction, and similarly if she measures in the $z$ direction. Moreover, the effect will be instantaneous, regardless of the spatial distance between the two particles, which seems at odds with special relativity.  Can I use a scheme like this to communicate faster than light? How to solve the equation $\phi(n) = k$? Let $\phi(n) $ is the numbers of number that are relatively prime to n.   Then, how could we solve the equation $\phi(n) = k, k &gt; 0?$   For example:    $\phi(n) = 8 $  I can use computer program to check all numbers that are relatively prime to $n$, but I think there must be an easier way to approach this problem.    Base on this formula: $$\prod_{i=0}^{k} p_{i}a^{a_i} $$ The only thing I can see is n must not have a prime factor > 9, otherwise $\phi(n) &gt; 8 $. I really don't know where to start :( ? A hint would be greatly appreciated. What's the easiest way to install a missing Perl module? I get this error:  Can't locate Foo.pm in @INC  Is there an easier way to install it than downloading, untarring, making, etc? Prove $x^3 + 3 =4y(y+1)$ has no integer solutions User suggested great corrective edit to my answer, but the edit was rejected. What can I do to approve it? Does $\sum_{k=1}^\infty\frac1{k^n}$ converge for $\Re(n)=1,\Im(n)\ne0$?  The ratio test is inconclusive.  It passes the term test for $\Re(n)=1$, but this is not sufficient to prove convergence.  Since we are dealing with so many complex numbers, I do not know of any convergence tests for this.  I know that if it is convergent, it is conditionally convergent. How to prevent Command-I/Command-Shift-I from opening Mac Mail when in browser? When in a browser (Chrome or Safari), the following keyboard shortcut will always bring up a window that says "Welcome To Mail":  Command+Shift+I  I would like to use this shortcut for another purpose.  Is there any way to disable this shortcut?