---
title: "string(fromMeters:)"
framework: foundation
role: symbol
role_heading: Instance Method
path: "foundation/lengthformatter/string(frommeters:)"
---

# string(fromMeters:)

Returns a length string for the provided value.

## Declaration

```swift
func string(fromMeters numberInMeters: Double) -> String
```

## Parameters

- `numberInMeters`: The length’s value in meters.

## Return Value

Return Value A string that combines a value and a unit string appropriate for the formatter’s locale.

## Discussion

Discussion This method converts the provided length into units appropriate for the formatter’s locale.

## See Also

### Formatting Length Strings

- [isForPersonHeightUse](foundation/lengthformatter/isforpersonheightuse.md)
- [getObjectValue(_:for:errorDescription:)](foundation/lengthformatter/getobjectvalue(_:for:errordescription:).md)
- [numberFormatter](foundation/lengthformatter/numberformatter.md)
- [string(fromValue:unit:)](foundation/lengthformatter/string(fromvalue:unit:).md)
- [unitString(fromMeters:usedUnit:)](foundation/lengthformatter/unitstring(frommeters:usedunit:).md)
- [unitString(fromValue:unit:)](foundation/lengthformatter/unitstring(fromvalue:unit:).md)
- [unitStyle](foundation/lengthformatter/unitstyle.md)
