haskell十进制负数

编程入门 行业动态 更新时间:2024-10-28 20:24:06
本文介绍了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十进制负数

本文发布于:2023-06-02 07:32:23,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/440273.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:负数   haskell   十进制

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!