We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
parse
It would be nice if parse knew how to handle Measurement type numbers. Something on the following lines, might work:
Measurement
import Base.parse function parse(::Type{Measurement}, s::AbstractString) n = parse.(Float64,split(s,"±")) return n[1]±n[2] end
This is handy when you have Measurement type data produced and stored as a string, for example in a CSV file.
The text was updated successfully, but these errors were encountered:
It already does: https://juliaphysics.github.io/Measurements.jl/stable/examples/#Measurements-from-Strings-1
julia> using Measurements julia> parse(Measurement{Float64}, "4 ± 1.3") 4.0 ± 1.3
Sorry, something went wrong.
No branches or pull requests
It would be nice if
parse
knew how to handleMeasurement
type numbers.Something on the following lines, might work:
This is handy when you have Measurement type data produced and stored as a string, for example in a CSV file.
The text was updated successfully, but these errors were encountered: