---
title: FloatDataFormat
framework: applenewsformat
role: symbol
role_heading: Object
path: applenewsformat/floatdataformat
---

# FloatDataFormat

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

## Declaration

```data
object FloatDataFormat
```

## Properties

decimals: 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: The type of data format for this object. This must be float for a float data format object.

## Discussion

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"           }         ],         …       }     }   ] }

## Relationships

### Inherits From

- [DataFormat](applenewsformat/dataformat.md)

## See Also

### Tables with JSON Data

- [Adding a JSON Table](applenews/adding-a-json-table.md)
- [DataTable](applenewsformat/datatable.md)
- [RecordStore](applenewsformat/recordstore.md)
- [DataDescriptor](applenewsformat/datadescriptor.md)
- [DataTableSorting](applenewsformat/datatablesorting.md)
- [DataFormat](applenewsformat/dataformat.md)
- [ImageDataFormat](applenewsformat/imagedataformat.md)
