---
title: "value(fromBaseUnitValue:)"
framework: foundation
role: symbol
role_heading: Instance Method
path: "foundation/unitconverter/value(frombaseunitvalue:)"
---

# value(fromBaseUnitValue:)

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

## Declaration

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

## Parameters

- `baseUnitValue`: The value in terms of the base unit.

## Return Value

Return Value The value in terms of a given unit.

## Discussion

Discussion This method takes a value in the base unit of a unit’s dimension and returns the result of converting it into that unit. For example, a converter for the pounds unit calling this method, passing 2.20462 to the baseUnitValue parameter, results in 1.0 (2.20462 lbs = 1 kg).

## See Also

### Converting Between Units

- [baseUnitValue(fromValue:)](foundation/unitconverter/baseunitvalue(fromvalue:).md)
