Skip to content
Snippets Groups Projects
Commit 68f826d6 authored by sven.panne@aedion.de's avatar sven.panne@aedion.de
Browse files

[project @ 2000-06-12 19:57:40 by panne]

Print only the first 6 characters of the result's decimal
representation, this "solves" the problem that without optimization
0.46920002 was printed and 0.4692 with -O. Perhaps this could be
turned into a test for constant folding, but this was probably not the
test writer's intention.
parent fb51d8a4
No related merge requests found
......@@ -3,7 +3,9 @@
import PrelGHC( Float# )
import PrelFloat
main = putStr (shows (selectee1 + selectee2) "\n")
-- This test is a little bit numerically unstable, so compare only a small prefix.
-- Otherwise you get slightly different results with and without optimization.
main = putStrLn (take 6 (shows (selectee1 + selectee2) ""))
data Tfo = Tfo Float# Float# Float# Float# Float# Float# Float# Float# Float# Float# Float# Float#
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment