| 07-19-2009, 04:03 PM | #1 |
Title says everything: What is the minimum/maximum value of the WC3 variabletype "real"? I thought it would be something like "0xffffffff" but I'm definetly not sure... Any sources for you answers would be nice :) |
| 07-19-2009, 04:52 PM | #2 |
Its ranging from -(2^24)*(2^127) to +(2^24)*(2^127), unless i misunderstood something. I did. New result: (2^-23 (2^23 - 1) + 1) 2^127 as maximum. Multiply by -1 for minimum. Note: this applies to standard floating point variables of 32 bit length. Please understand that Blizzard fucked up their reals. I am not quite sure if all this applies to Blizzards reals as well. Source: Wikipedia (http://en.wikipedia.org/wiki/Single_precision). |
