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.
ULPError
Float32
1 parent c0340a8 commit 85ace6cCopy full SHA for 85ace6c
test/testhelpers/ULPError.jl
@@ -7,8 +7,8 @@ module ULPError
7
end
8
function ulp_error(accurate::AbstractFloat, approximate::AbstractFloat)
9
# 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)
+ zero_return = 0f0
+ inf_return = Inf32
12
# handle floating-point edge cases
13
accur_is_nan = isnan(accurate)
14
approx_is_nan = isnan(approximate)
0 commit comments