---
title: "init(doubleValue:unit:)"
framework: foundation
role: symbol
role_heading: Initializer
path: "foundation/nsmeasurement/init(doublevalue:unit:)"
---

# init(doubleValue:unit:)

Initializes a new measurement with a specified double-precision floating-point value and unit.

## Declaration

```swift
init(doubleValue: Double, unit: Unit)
```

## Parameters

- `doubleValue`: The double-precision floating-point measurement value.
- `unit`: The unit of measure.

## Return Value

Return Value A measurement initialized to have the specified double-precision floating-point value and unit.
