Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mattt/6e2342e294d63984638c305659dad95e to your computer and use it in GitHub Desktop.
Save mattt/6e2342e294d63984638c305659dad95e to your computer and use it in GitHub Desktop.
import Foundation
extension UnitConcentrationMass {
class var microgramsPerCubicMeter: UnitConcentrationMass {
let converter = UnitConverterLinear(coefficient: 1e-9)
return .init(symbol: "µg/m³", converter: converter)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment