Skip to content

Latest commit

 

History

History
27 lines (19 loc) · 841 Bytes

readme.md

File metadata and controls

27 lines (19 loc) · 841 Bytes

ExchangeUnitful

Build Status

This package enables conversion of Unitful types into UnitTypes for units whose unit symbols are identical. See UnitTypes for more information.

using Unitful
using UnitTypes, ExchangeUnitful

@show 1u"m" + Meter(3)

#convert into UnitTypes
@show convert(Meter, 1.2u"m")
@show convert(Meter, 1.2u"mm")

#convert into Unitful
@show convert(typeof(1u"m"), Millimeter(1.2))
@show convert(typeof(1u"m"), Meter(1.2))

Copyright

Copyright (c) 2023 - Mechanomy LLC

License

Released under MIT.