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.
1 parent e958121 commit 77d1585Copy full SHA for 77d1585
test/ufixed.jl
@@ -65,7 +65,7 @@ x = UFixed8(0.5)
65
@test convert(UFixed14, 1.1/typemax(UInt16)*4) == eps(UFixed14)
66
@test convert(UFixed16, 1.1/typemax(UInt16)) == eps(UFixed16)
67
@test convert(UFixed{UInt32,16}, 1.1/typemax(UInt32)*2^16) == eps(UFixed{UInt32,16})
68
-@test convert(UFixed{UInt64,3}, 1.1/typemax(UInt64)*2^61) == eps(UFixed{UInt64,3})
+@test convert(UFixed{UInt64,3}, 1.1/typemax(UInt64)*UInt64(2)^61) == eps(UFixed{UInt64,3})
69
@test convert(UFixed{UInt128,7}, 1.1/typemax(UInt128)*UInt128(2)^121) == eps(UFixed{UInt128,7})
70
71
@test convert(UFixed8, 1.1f0/typemax(UInt8)) == eps(UFixed8)
0 commit comments