High precision floating point numbers in Haskell?

前端 未结 3 2118
情深已故
情深已故 2020-12-16 10:57

I know Haskell has native data types which allow you to have really big integers so things like

>> let x = 131242358045284502395482305
>> x
1312         


        
3条回答
  •  情歌与酒
    2020-12-16 11:32

    If you need a high precision /fast/ floating point calculations, you may need to use FFI and long doubles, as the native Haskell type is not implemented yet (see https://ghc.haskell.org/trac/ghc/ticket/3353).

提交回复
热议问题