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 FloatDataFormatProperties
| Name | Type | Description |
|---|---|---|
decimals | integer | 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 Required | string | The type of data format for this object. This must be float for a |
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"
}
],
…
}
}
]
}