Browse Source

fcl-js: fixed MinMaxSafeIntDouble for significand bits instead of explicit bits

git-svn-id: trunk@41388 -
Mattias Gaertner 6 years ago
parent
commit
d6f5792f36
1 changed files with 2 additions and 2 deletions
  1. 2 2
      packages/fcl-js/src/jsbase.pp

+ 2 - 2
packages/fcl-js/src/jsbase.pp

@@ -26,8 +26,8 @@ uses
   Classes;
   Classes;
 
 
 const
 const
-  MinSafeIntDouble = -$fffffffffffff-1; // -4503599627370496
-  MaxSafeIntDouble =  $fffffffffffff; //  4503599627370495
+  MinSafeIntDouble = -$1fffffffffffff; // -9007199254740991 53 bits (52 explicitly stored)
+  MaxSafeIntDouble =  $1fffffffffffff; //  9007199254740991
 Type
 Type
   TJSType = (jstUNDEFINED,jstNull,jstBoolean,jstNumber,jstString,jstObject,jstReference,jstCompletion);
   TJSType = (jstUNDEFINED,jstNull,jstBoolean,jstNumber,jstString,jstObject,jstReference,jstCompletion);