<!--
{
  "availability" : [
    "Apple News Format: 1.7.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AppleNews",
  "identifier" : "/documentation/AppleNewsFormat/FloatDataFormat",
  "metadataVersion" : "0.1.0",
  "role" : "Object",
  "symbol" : {
    "kind" : "Object",
    "modules" : [
      "Apple News Format"
    ],
    "preciseIdentifier" : "data:news_format:FloatDataFormat"
  },
  "title" : "FloatDataFormat"
}
-->

# FloatDataFormat

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

```
object FloatDataFormat
```

## Discussion

When you specify `float` as the data type for an item in [`DataDescriptor`](/documentation/AppleNewsFormat/DataDescriptor), you can indicate the number of places after the decimal point that you want to display.

This object can be used in [`DataDescriptor`](/documentation/AppleNewsFormat/DataDescriptor).

### Example

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

## Relationships

### Inherits From

[`DataFormat`](/documentation/AppleNewsFormat/DataFormat)

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)