blob: 9a2d22497005d1bb3d2319cd7accf09b75e7e824 (
plain)
1
2
3
4
5
6
7
8
9
|
testF :: Float -> Bool
testF x = x == 0 && not (isNegativeZero x)
testD :: Double -> Bool
testD x = x == 0 && not (isNegativeZero x)
main :: IO ()
main = do print $ testF (-0.0)
print $ testD (-0.0)
|