---
title: "fractional(_:)"
framework: foundation
role: symbol
role_heading: Type Method
path: "foundation/date/formatstyle/symbol/secondfraction/fractional(_:)"
---

# fractional(_:)

Creates a custom format style representing the fractional seconds component of a date.

## Declaration

```swift
static func fractional(_ val: Int) -> Date.FormatStyle.Symbol.SecondFraction
```

## Parameters

- `val`: Length of the string representation of the fractional seconds component.

## Return Value

Return Value Returns the numerical representation of the fractional component of the second.

## See Also

### Modifying a Second Fraction

- [milliseconds(_:)](foundation/date/formatstyle/symbol/secondfraction/milliseconds(_:).md)
