We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents cde8772 + b038a77 commit 890d3efCopy full SHA for 890d3ef
src/type/parse.jl
@@ -7,7 +7,8 @@
7
end
8
9
macro df64_str(val::AbstractString)
10
- :(Double64($val))
+ n = Double64(val)
11
+ :(Double64($(n.hi), $(n.lo)))
12
13
14
@inline function Double32(str::S) where {S<:AbstractString}
@@ -19,7 +20,8 @@ end
19
20
21
22
macro df32_str(val::AbstractString)
- :(Double32($val))
23
+ n = Double32(val)
24
+ :(Double32($(n.hi), $(n.lo)))
25
26
27
@inline function Double16(str::S) where {S<:AbstractString}
@@ -31,7 +33,8 @@ end
31
33
32
34
35
macro df16_str(val::AbstractString)
- :(Double16($val))
36
+ n = Double16(val)
37
+ :(Double16($(n.hi), $(n.lo)))
38
39
40
function tryparse(::Type{DoubleFloat{Float64}}, str::S; base::Int=10) where {S<:AbstractString}
0 commit comments