-
Notifications
You must be signed in to change notification settings - Fork 121
Open
Labels
dimensionlessdimensionless quantities/units (mm/m, rad, …) and their interaction with plain numbersdimensionless quantities/units (mm/m, rad, …) and their interaction with plain numbers
Description
using Unitful
a = 180u"°" + 3.141u"rad"
@show unit(a) # blank
@show typeof(a) # Float64I expect to have to explicitly ustrip() when I want a unitless quantity.
This behavior makes certain operations type-unstable, which the docs describe and dismiss.
Much of the point of having typed functions goes away if I also have to accept floats because their input units were automatically, silently canceled.
UnitfulAngles.jl does not fix this.
rashidrafeek, RomeoVAirbus and danielmatz
Metadata
Metadata
Assignees
Labels
dimensionlessdimensionless quantities/units (mm/m, rad, …) and their interaction with plain numbersdimensionless quantities/units (mm/m, rad, …) and their interaction with plain numbers