Numeric

Numeric

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.

  • This is the value under which two values are indistinguishable.
  • The default means NAN that the value is a constant, not to be adjusted.
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.

  • The default is (max + min)/2.
step double <optional>
NAN

The positive sampling step, in order to sample the [min, max] interval.

  • The default corresponds to a value that is not be sampled, often corresponding to a convex neighborhood.
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