Difference between revisions of "Talk:Long Integer"

From the Oblivion ConstructionSet Wiki
Jump to navigation Jump to search
imported>Timeslip
(does oblivion store integers as floats?)
imported>Timeslip
(oops)
Line 11: Line 11:
As you can see, when I add the last number in, it changes the last digit for no apparent reason. It does not change it consistently, so I can't just account for the change. I assume this is due to memory issues, but the maximum number I reach is 1326262626 and the minimum is -1326262626, which is well within the limitations written on this page. What gives?
As you can see, when I add the last number in, it changes the last digit for no apparent reason. It does not change it consistently, so I can't just account for the change. I assume this is due to memory issues, but the maximum number I reach is 1326262626 and the minimum is -1326262626, which is well within the limitations written on this page. What gives?


:I know that in esm/esp/ess files ''all'' variables and gmst's are stored as floats, even if they're defined as integers. Maybe it stores integer script variables as floats in game too, and you're seeing the normal rounding errors suffered by floats? [[User:Timeslip|Timeslip]] 15:10, 15 August 2006 (EDT)
:Ignore me. I didn't read the article... [[User:Timeslip|Timeslip]] 15:13, 15 August 2006 (EDT)

Revision as of 14:13, 15 August 2006

Dragoon Wraith TALK 12:45, 15 August 2006 (EDT): I'm having issues with longs that are above 10^8 (or less than -10^8). They are longs on an object, and so these numbers should work. My math looks something like this:

         13
+      2500
       2513
+     70000
      72513
+  17000000
   17072513
+1000000000
 1017072517

As you can see, when I add the last number in, it changes the last digit for no apparent reason. It does not change it consistently, so I can't just account for the change. I assume this is due to memory issues, but the maximum number I reach is 1326262626 and the minimum is -1326262626, which is well within the limitations written on this page. What gives?

Ignore me. I didn't read the article... Timeslip 15:13, 15 August 2006 (EDT)