Skip to content

Commit aa0b234

Browse files
committed
Float32 conversion as in Grisu
1 parent afae0f3 commit aa0b234

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ryu.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ function plain_precision_heuristic(xs::AbstractArray{<:AbstractFloat})
99
if isapprox(y, 0, atol=1e-16)
1010
continue
1111
end
12-
_, e10 = Ryu.reduce_shortest(y)
12+
_, e10 = Ryu.reduce_shortest(convert(Float32, y))
1313
e10min = min(e10min, e10)
1414
e10max = max(e10max, e10)
1515
end

0 commit comments

Comments
 (0)