---
title: "millimolesPerLiter(withGramsPerMole:)"
framework: foundation
role: symbol
role_heading: Type Method
path: "foundation/unitconcentrationmass/millimolesperliter(withgramspermole:)"
---

# millimolesPerLiter(withGramsPerMole:)

Returns the millimoles per liter unit with the specified number of grams per mole.

## Declaration

```swift
class func millimolesPerLiter(withGramsPerMole gramsPerMole: Double) -> UnitConcentrationMass
```

## Parameters

- `gramsPerMole`: The mass, in grams, for a mole of a given constituent.

## Return Value

Return Value A unit expressing millimoles per liter with the specified molar mass.

## See Also

### Accessing Predefined Units

- [gramsPerLiter](foundation/unitconcentrationmass/gramsperliter.md)
- [milligramsPerDeciliter](foundation/unitconcentrationmass/milligramsperdeciliter.md)
