Skip to content

Configuration Item Decimal

Sébastien Gallou edited this page Apr 18, 2017 · 2 revisions

Decimal

This type describe a decimal data like 5.3. Decimal separator can be a "." or a ",".

Non optionnal fields

Type descriptor

This field define the type as decimal

"type" : "decimal"

Optionnal fields

Default Value

The defaultValue field permit to set the default value of the parameter it must be set between min and max allowed value if defined. If not set the default value is 0.0 rounded by max and min values.

"defaultValue" : "5.2"

Minimum and Maximum value

It define the min and max values that can be setted in the parameter.

"maximumValue" : "17.8",
"minimumValue" : "0"

Precision

It define the precision of the decimal number. The value correspond to the number of digits after the decimal separator.

"precision" : "2"

Example

"CurrentCoefficient" : {
  "type" : "decimal",
  "name" : "correction coefficient",
  "description" : "Set a correction coefficient to adjust the value",
  "defaultValue" : "0.0",
  "maximumValue" : "1.0",
  "minimumValue" : "-1.0",
  "precision" : "2"
}

Clone this wiki locally