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.
rationalize(::Complex)
1 parent 834aad4 commit 0fb86ddCopy full SHA for 0fb86dd
test/rational.jl
@@ -736,6 +736,6 @@ end
736
# test: rationalize(x::Complex; kvs...)
737
precise_next = 7205759403792795//72057594037927936
738
@assert Float64(precise_next) == nextfloat(0.1)
739
- @test rationalize(nextfloat(0.1) * im; tol=0) == precise_next * im
+ @test rationalize(Int64, nextfloat(0.1) * im; tol=0) == precise_next * im
740
@test rationalize(0.1im; tol=eps(0.1)) == rationalize(0.1im)
741
end
0 commit comments