Difference between revisions of "Category talk:Variables"
Jump to navigation
Jump to search
Longs are not 32-bit floats, but are used as 32-bit floats
imported>Haama (→Overhaul: Specific suggestions) |
imported>Haama (Longs are not 32-bit floats, but are used as 32-bit floats) |
||
Line 4: | Line 4: | ||
:That would seem to explain it, though in this particular case it was a quest script variable declared as Long that was having issues. Presumably it's also stored as a float similar to globals though. -- [[User:Nezroy|Nezroy]] 02:37, 14 May 2006 (EDT) | :That would seem to explain it, though in this particular case it was a quest script variable declared as Long that was having issues. Presumably it's also stored as a float similar to globals though. -- [[User:Nezroy|Nezroy]] 02:37, 14 May 2006 (EDT) | ||
[http://www.bethsoft.com/bgsforums/index.php?s=&showtopic=826285&view=findpost&p=12024303 Longs are not stored as 32-bit/single floats; instead, they are ''used'' as floats (in most functions)]. This is important for effect codes returned by OBSE Magic functions - they will be accurately stored even though they take 32 bits. One note on the linked topic - I don't think it's quite so clear whether longs are singles or doubles, but they certainly aren't single floats.--[[User:Haama|Haama]] 01:18, 3 April 2008 (EDT) | |||
== Round or Floor == | == Round or Floor == |