new Numeric(nameopt, precisionopt, minopt, maxopt, zeroopt, stepopt, unitopt)
- Description:
Specifies a bounded finite precision numerical value.
- The numeric parameter values can also be given as a JSON structure, or a String.
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
name |
string |
<optional> |
The numerical value name. |
|
precision |
double |
<optional> |
NAN
|
The positive numerical precision.
|
min |
double |
<optional> |
-DBL_MAX
|
The numerical minimal value. |
max |
double |
<optional> |
DBL_MAX
|
The numerical maximal value. |
zero |
double |
<optional> |
NAN
|
The numerical default and initial value.
|
step |
double |
<optional> |
NAN
|
The positive sampling step, in order to sample the [min, max] interval.
|
unit |
string |
<optional> |
""
|
The numerical unit. |
Members
count :uint
- Description:
The number of defined values between min and max, given the step.
The number of defined values between min and max, given the step.
Type:
- uint
Methods
asString() → {string}
- Description:
Returns the numeric parameters as a wJSON string.
Returns:
The string view of the parameters.
- Type
- string