File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -123,8 +123,8 @@ const bar = 100 * kPa
123
123
uparse(s::AbstractString)
124
124
125
125
Parse a string containing an expression of units and return the
126
- corresponding `Quantity` object. For example, `uparse("m/s")`
127
- would be parsed to `Quantity(1.0, length=1, time=-1)`.
126
+ corresponding `Quantity` object with `Float64` value . For example,
127
+ `uparse("m/s")` would be parsed to `Quantity(1.0, length=1, time=-1)`.
128
128
"""
129
129
function uparse (s:: AbstractString )
130
130
return as_quantity (eval (Meta. parse (s))):: Quantity{DEFAULT_VALUE_TYPE,DEFAULT_DIM_TYPE}
@@ -138,8 +138,8 @@ as_quantity(x) = error("Unexpected type evaluated: $(typeof(x))")
138
138
u"[unit expression]"
139
139
140
140
Parse a string containing an expression of units and return the
141
- corresponding `Quantity` object. For example, `u"km/s^2"`
142
- would be parsed to `Quantity(1000.0, length=1, time=-2)`.
141
+ corresponding `Quantity` object with `Float64` value . For example,
142
+ `u"km/s^2"` would be parsed to `Quantity(1000.0, length=1, time=-2)`.
143
143
"""
144
144
macro u_str (s)
145
145
return esc (uparse (s))
You can’t perform that action at this time.
0 commit comments