ECMAScript | |
---|---|
Number | MAX_VALUE |
Number | MIN_VALUE |
Number | NaN |
Number | NEGATIVE_INFINITY |
Number | POSITIVE_INFINITY |
ECMAScript | |
---|---|
String | toExponential ( Number fractionDigits ) |
String | toFixed ( Number fractionDigits ) |
String | toLocaleString () |
String | toPrecision ( Number precision ) |
String | toString ( Number radix ) |
String | toString () |
This is the only numeric type in DAZScript. When a script is interacting with classes from the SDK, all the C++ numeric types (int, float, double, etc) are converted to/from this type.
Numbers are not typically constructed, rather they are created by simple assignment.
Example:
var nTemp = 3; var nTemp2 = 3.14579;
Number : MAX_VALUE
The largest positive finite value of the Number type; approximately 1.7976931348623157 x 10308.
Number : MIN_VALUE
The smallest positive value of the Number type; approximately 5 x 10-324.
Number : NaN
A number value that is a IEEE 754 “Not-a-Number” value.
Number : NEGATIVE_INFINITY
A number value that is the negative infinite Number value.
Number : POSITIVE_INFINITY
A number value that is the positive infinite Number value.
Number()
Default Constructor.
Number( Number num )
Copy Constructor.
Parameter(s):
String : toExponential( Number fractionDigits )
Parameter(s):
Return Value:
String : toFixed( Number fractionDigits )
Parameter(s):
Return Value:
String : toLocaleString()
Return Value:
String : toPrecision( Number precision )
Parameter(s):
Return Value:
String : toString( Number radix )
Parameter(s):
Return Value:
Return Value: