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 71907aa commit 264650aCopy full SHA for 264650a
test/runtests.jl
@@ -45,6 +45,14 @@ end
45
@test y == flipsign(y, 1)
46
end
47
48
+@testset "arithmetic" begin
49
+ fpi = Float128(pi)
50
+ finvpi = inv(fpi)
51
+ @test (fpi + 3) - fpi == 3
52
+ @test fpi * finvpi === one(Float128)
53
+ @test finvpi / fpi == finvpi^2
54
+end
55
+
56
@testset "modf" begin
57
x = Float128(pi)
58
fpart, ipart = modf(x)
0 commit comments