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 38f4889 commit bf271ffCopy full SHA for bf271ff
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