1 --!!! test RealFrac ops (ceiling/floor/etc.) on Floats/Doubles
5 (-- {Float,Double} inputs, {Int,Integer} outputs
6 show ((map ceiling float_list) :: [Int])
8 ++ show ((map ceiling float_list) :: [Integer])
10 ++ show ((map ceiling double_list) :: [Int])
12 ++ show ((map ceiling double_list) :: [Integer])
14 ++ show ((map floor float_list) :: [Int])
16 ++ show ((map floor float_list) :: [Integer])
18 ++ show ((map floor double_list) :: [Int])
20 ++ show ((map floor double_list) :: [Integer])
22 ++ show ((map truncate float_list) :: [Int])
24 ++ show ((map truncate float_list) :: [Integer])
26 ++ show ((map truncate double_list) :: [Int])
28 ++ show ((map truncate double_list) :: [Integer])
30 ++ show ((map round float_list) :: [Int])
32 ++ show ((map round float_list) :: [Integer])
34 ++ show ((map round double_list) :: [Int])
36 ++ show ((map round double_list) :: [Integer])
38 ++ show ((map properFraction float_list) :: [(Int,Float)])
40 ++ show ((map properFraction float_list) :: [(Integer,Float)])
42 ++ show ((map properFraction double_list) :: [(Int,Double)])
44 ++ show ((map properFraction double_list) :: [(Integer,Double)])
50 0.0, -0.0, 1.1, 2.8, 3.5, 4.5, -1.0000000001, -2.9999995,
51 -3.50000000001, -4.49999999999, 1000012.0, 123.456, 100.25,
52 102.5, 0.0012, -0.00000012, 1.7e4, -1.7e-4, 0.15e-6, pi
55 double_list :: [Double]
57 0.0, -0.0, 1.1, 2.8, 3.5, 4.5, -1.0000000001, -2.9999995,
58 -3.50000000001, -4.49999999999, 1000012.0, 123.456, 100.25,
59 102.5, 0.0012, -0.00000012, 1.7e4, -1.7e-4, 0.15e-6, pi