I'm passing a long int from C# (DateTime.Now().Ticks) to a web page then trying to pass it back for the sake of concurrency.
634290758865783994 becomes 634290758865783900
Why is this? I t开发者_高级运维hought both the System.Long and Javascript Number were 64 bit integers.
ECMAScript (the formal name for javascript) stores numbers as IEEE-754 double precision floating-points.
These can only represent the values up to 2^53 using the significant bits, and everything above this will be an approximation.
 
         
                                         
                                         
                                         
                                        ![Interactive visualization of a graph in python [closed]](https://www.devze.com/res/2023/04-10/09/92d32fe8c0d22fb96bd6f6e8b7d1f457.gif) 
                                         
                                         
                                         
                                         加载中,请稍侯......
 加载中,请稍侯......
      
精彩评论