Skip to content

Commit 85ace6c

Browse files
committed
ULPError: use Float32 literals
1 parent c0340a8 commit 85ace6c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/testhelpers/ULPError.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ module ULPError
77
end
88
function ulp_error(accurate::AbstractFloat, approximate::AbstractFloat)
99
# the ULP error is usually not required to great accuracy, so `Float32` should be precise enough
10-
zero_return = Float32(0)
11-
inf_return = Float32(Inf)
10+
zero_return = 0f0
11+
inf_return = Inf32
1212
# handle floating-point edge cases
1313
accur_is_nan = isnan(accurate)
1414
approx_is_nan = isnan(approximate)

0 commit comments

Comments
 (0)