本文介绍了haskell十进制负数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
可能重复: 在Haskell(macports)中出现负双精度或浮点型
我是Haskell的新手,当我尝试在ghci中输入负浮点数(例如-1.0)或在模块中使用它们时,我不断遇到分段错误.
I am new to haskell, and when I try to enter negative floating point numbers (e.g. -1.0) into ghci or use them in modules, I keep getting segmentation faults.
如何为不引起段错误的变量赋予负浮点值?
How do I give negative floating point values to variables w/o causing seg faults?
如果这是一个完全的菜鸟问题,我会提前道歉,但我对此感到非常震惊……
My apologies ahead of time if this is a total noob question, but I am kind of shocked this is as hard as it is...
推荐答案这是GHC的MacPorts内置版本.请尝试使用 Haskell平台.
That's a broken MacPorts build of GHC. Please try the Haskell Platform instead.
更多推荐
haskell十进制负数
发布评论