-
Notifications
You must be signed in to change notification settings - Fork 41
Closed
Description
It would be nice if parse
knew how to handle Measurement
type numbers.
Something on the following lines, might work:
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.
Metadata
Metadata
Assignees
Labels
No labels