Commit 68f826d6 authored by panne's avatar panne
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
......@@ -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#
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment