Contents

FloatDataFormat

The object that allows you to specify the number of digits after the decimal point for numeric values in data table cells.

Declaration

object FloatDataFormat

Properties

NameTypeDescription
decimalsinteger

The number of digits that can appear after the decimal point. The number will be rounded to this number of digits after the decimal.

type Requiredstring

The type of data format for this object. This must be float for a float data format object.

Discussion

When you specify float as the data type for an item in DataDescriptor, you can indicate the number of places after the decimal point that you want to display.

This object can be used in DataDescriptor.

Example

{
  "components": [
    {
      "role": "datatable",
      "data": {
        "descriptors": [
          {
            "identifier": "id-float",
            "dataType": "float",
            "format": {
              "type": "float",
              "decimals": 3
            },
            "key": "image",
            "label": "none"
          }
        ],

      }
    }
  ]
}

See Also

Tables with JSON Data