<!--
{
  "availability" : [
    "iOS: 15.0.0 -",
    "iPadOS: 15.0.0 -",
    "macCatalyst: 15.0.0 -",
    "macOS: 12.0.0 -",
    "tvOS: 15.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 8.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Foundation",
  "identifier" : "/documentation/Foundation/Measurement/FormatStyle/init(width:locale:usage:hidesScaleName:numberFormatStyle:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "Foundation"
    ],
    "preciseIdentifier" : "s:10Foundation11MeasurementVAASo11NSDimensionCRbzrlE11FormatStyleVAASo17NSUnitTemperatureCRszrlE5width6locale5usage14hidesScaleName06numberdE0AGyAI_GAG9UnitWidthVyAI__G_AA6LocaleVAA0bdO5UsageVyAIGSbAA013FloatingPointdE0VySdGSgtcfc"
  },
  "title" : "init(width:locale:usage:hidesScaleName:numberFormatStyle:)"
}
-->

# init(width:locale:usage:hidesScaleName:numberFormatStyle:)

Creates an instance using the provided width, locale, usage type, number format, and the option to hide the unit name.

```
init(width: Measurement<UnitType>.FormatStyle.UnitWidth = .abbreviated, locale: Locale = .autoupdatingCurrent, usage: MeasurementFormatUnitUsage<UnitType> = .general, hidesScaleName: Bool = false, numberFormatStyle: FloatingPointFormatStyle<Double>? = nil)
```

## Parameters

`width`

The width of the measurement unit.

`locale`

The locale to use when formatting the measurement.

`usage`

The intended purpose of the formatted measurement.

`hidesScaleName`

An option to hide the unit name of a measurement.

`numberFormatStyle`

The presentation style of the numeric value.

---

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)