On Tuesday, November 26, 2019 at 1:03:33 PM UTC+1, Chuck R. wrote: > > > JavaScript is an "untyped" language, which is an advantage and a > disadvantage. ... Based on your question, it is an advantage, because it > doesn't matter if you have a 32bit system or a 64 bit system. max_int is > the same! > > I'm a Perl programmer, not a JS programmer. Would you mind explaining why > the limits for a JS counter are the same for a 32-bit vs 64-bit OS? I would > be eager to learn something new today by tapping into your wonder fount of > wisdom. :) >
From: MDN docs <https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number/MAX_SAFE_INTEGER#Description> The MAX_SAFE_INTEGER constant has a value of 9007199254740991 (9,007,199,254,740,991 > or ~9 quadrillion). The reasoning behind that number is that JavaScript > uses double-precision floating-point format numbers > <http://en.wikipedia.org/wiki/Double_precision_floating-point_format> as > specified in IEEE 754 <http://en.wikipedia.org/wiki/IEEE_floating_point> > and can only safely represent numbers between -(253 - 1) and 253 - 1. -m -- You received this message because you are subscribed to the Google Groups "TiddlyWiki" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/89c35e38-41c9-4b2b-a3d9-4b3a75dfdbcf%40googlegroups.com.

