---
title: "baseUnitValue(fromValue:)"
framework: foundation
role: symbol
role_heading: Instance Method
path: "foundation/unitconverter/baseunitvalue(fromvalue:)"
---

# baseUnitValue(fromValue:)

For a given unit, returns the specified value of that unit in terms of the base unit of its dimension.

## Declaration

```swift
func baseUnitValue(fromValue value: Double) -> Double
```

## Parameters

- `value`: The value in terms of a given unit.

## Return Value

Return Value The value in terms of the base unit.

## Discussion

Discussion This method takes a value in a particular unit and returns the result of converting it into the base unit of that unit’s dimension. For example, a converter for the miles unit calling this method, passing 1.0 to the value parameter, results in 1609.34 (1 mi = 1609.34 m).

## See Also

### Converting Between Units

- [value(fromBaseUnitValue:)](foundation/unitconverter/value(frombaseunitvalue:).md)
