Skip to content

Instantly share code, notes, and snippets.

@laevandus
Last active January 17, 2021 06:18
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 laevandus/d7d4ac360a2bafd1b9c33b78dc4e4886 to your computer and use it in GitHub Desktop.
Save laevandus/d7d4ac360a2bafd1b9c33b78dc4e4886 to your computer and use it in GitHub Desktop.
let measurement1 = Measurement(value: 3.2, unit: UnitElectricCurrent.amperes)
let measurement2 = Measurement(value: 0.02, unit: UnitElectricCurrent.kiloamperes)
print(measurement1 + measurement2)
// 23.2 A
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment