JuliaPhysics / Measurements.jl

Error propagation calculator and library for physical measurements. It supports real and complex numbers with uncertainty, arbitrary precision calculations, operations with arrays, and numerical integration.

Home Page:https://juliaphysics.github.io/Measurements.jl/stable/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

value() function for Unitful quantity without uncertainty

timmyfaraday opened this issue · comments

Hi @giordano,

Currently, the following results in an error: Measurements.value(2.0u"hr"), as the type is restricted to AbstractQuantity{<:Measurement}. Changing the latter to simply AbstractQuantity fixes this, however I'm uncertain whether this would break other features.

Changing this would be extremely helpful when working with both certain and uncertain variables.

with kind regards,

Tom

@giordano thanks for the quick response! big fan of the package!