---
title: "hide(rounded:)"
framework: swift
role: symbol
role_heading: Type Method
path: "swift/duration/unitsformatstyle/fractionalpartdisplaystrategy/hide(rounded:)"
---

# hide(rounded:)

Creates a display strategy that hides any fractional part rounding the unit value.

## Declaration

```swift
static func hide(rounded: FloatingPointRoundingRule = .toNearestOrEven) -> Duration.UnitsFormatStyle.FractionalPartDisplayStrategy
```

## See Also

### Using common strategies

- [hide](swift/duration/unitsformatstyle/fractionalpartdisplaystrategy/hide.md)
- [show(length:rounded:increment:)](swift/duration/unitsformatstyle/fractionalpartdisplaystrategy/show(length:rounded:increment:).md)
