string(fromValue:unit:)
Returns a properly formatted mass string for the given value and unit.
Declaration
func string(fromValue value: Double, unit: MassFormatter.Unit) -> StringParameters
- value:
The mass’s value in the given unit.
- unit:
The unit used in the resulting mass string.
Return Value
A localized string that combines the provided value and unit.