Skip to content

Commit 71126d5

Browse files
committed
ULPError: use Float64 instead of BigFloat
1 parent 0b05e22 commit 71126d5

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

test/testhelpers/ULPError.jl

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,7 @@ module ULPError
2828
end
2929
end
3030
end
31-
# assuming `precision(BigFloat)` is great enough
32-
acc = if accurate isa BigFloat
33-
accurate
34-
else
35-
BigFloat(accurate)::BigFloat
36-
end
31+
acc = Float64(accurate)::Float64
3732
err = abs(Float32((approximate - acc) / eps(approximate))::Float32)
3833
if isnan(err)
3934
@noinline throw_invalid() # unexpected

0 commit comments

Comments
 (0)