Skip to content

mechanomy/ExchangeUnitful.jl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages