Interpolate scoreboard component supports setting number of decimals

 

New option in Interpolate-component to force a fixed number of decimals.

{
  "name": "Interpolate example with mappingDecimals and replace",
  "style": {
    "width": "192px",
    "height": "128px",
    "background": "black",
    "color": "#b2b2b2"
  },
  "layout": [
    [
      {
        "component": "Interpolate",
        "value": "{{totalFaults}}",
        "mapping": {
          "totalFaults": [
            "current",
            "grundf"
          ]
        },
        "replace": {
          "0.00": "Clear"
        },
        "mappingDecimals": {
          "totalFaults": 2
        }
      }
    ]
  ]
}