Integer64 : Number
NEW in 3ds Max 9: Three new Number classes have been added to MAXScript in 3ds Max 9: Double, Integer64 and IntegerPtr.
The widest float value in the .NET Common Type System (CTS) is the System::Double, which corresponds to the C++ double value (real*8). The Double value class in MAXScript wraps the double value class.
All generic mathematical methods and operations (sin, cos, random, +, -, etc.) that operate on the Float value class in MAXScript are also implemented on the Double class.
The Double class supports the 'bit' structure methods in a manner similar to the Float class.
The Double class is a MAXScript saveable class - in other words, it can be used in persistent globals.
The data type convertors for ActiveX, OLE, and fileProperties.getPropertyValue/ setPropertyValue will convert variant VT_R8 to Doubles, and vice versa.
For methods that expect a Float as an argument, the Double value will be cast to a Float value and used.
Double literals are indicated by 'd' exponential qualifier.
0.5 as Double à 0.5d0
'bit' structure methods that operate on an Integer can also operate on Integer64 and IntegerPtr. For methods that take 2 integer arguments, the first argument determines the output value type.
bit.intAsHex will append an "L" to the output string for Integer64 inputs, and a "P" for IntegerPtr inputs.
bit.hexAsInt will output a Integer64 in the input string contains an "L", a IntegerPtr if it contains a "P".
String and Stringstream values can be coerced to Double, Integer64 and IntegerPtr.
All number data types (Integer, Float, Integer64, IntegerPtr, Double) and Time can be coerced from one to the other.
For loop variables are either Integer, Float, Integer64, IntegerPtr, or Double based on the widest value type for the to, from, and step values
NEW in 3ds Max 9: Returns true if running in a 64 bit build of 3ds Max, false otherwise.