Inheritance diagram for Number:
Properties | |
Number | MAX_VALUE |
Number | MIN_VALUE |
Constructors | |
Number (Number num) | |
Number () | |
Methods | |
String | toExponential (Number fractionDigits) |
String | toFixed (Number fractionDigits) |
String | toLocaleString () |
String | toPrecision (Number precision) |
String | toString () |
String | toString (Number radix) |
This is the only numeric type in DAZ Script. When a script is interacting with classes from the DAZ Studio SDK, all the C++ numeric types (int, float, double, etc) are converted to/from this type.
Numbers are not typically contructed, rather they are created by simple assignment.
var nTmp = 3; var nTmp2 = 3.14579;
Number::Number | ( | ) |
Default Constructor.
Number::Number | ( | Number | num | ) |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. Copy Constructor
num | The number to copy |
fractionDigits | The number of digits following the decimal point after conversion. This must be in the range 0 to 20, if undefined, as many digits as necessary will be displayed. |
fractionDigits | The number of digits following the decimal point after conversion. This must be in the range 0 to 20, if undefined, 0 is assumed. |
String Number::toLocaleString | ( | ) |
Reimplemented from Object.
precision | The number of digits following the decimal point after conversion. This must be in the range 0 to 20, if undefined, the results of toString() are returned. |
String Number::toString | ( | ) |
radix | The base of the number system to use when converting the number. If the value is 10, or undefined, then the result is the same as toString(). This must be in the range 2 to 36. |
The maximum value for floating point values.
The minimum value for floating point values.