Your Account
Community
Topics (Upcoming)
More |
Stories tagged with: Number
Fastest numeric datatype?
http://lab.polygonal.de/2007/06/06/int-uint-and-number-data-...
Submitted by arpit
30 months, 2 days, 3 hours ago
There has been some debate on the efficiency of the new number types in AS3: int, uint and Number. So whats the most efficient? Answer: They are all almost the same. Performance difference only occurs when you convert the datatype (via casting) in code.
Join discussion...
Cannot use var n:Number == null to test if the number exists or not
The Number datatype's initial value is NaN. You cannot use n==null to test if that value has been set or not (it'll always return false). Instead use isNaN(n)
Join discussion...
|