Avoid conversion from floating point
This commit is contained in:
parent
af0bbedd48
commit
6ed0732644
@ -5,7 +5,7 @@ import Data.Number.Types
|
|||||||
import Data.Number.Instances
|
import Data.Number.Instances
|
||||||
import Data.Number.Internal
|
import Data.Number.Internal
|
||||||
import Data.Number.Peano
|
import Data.Number.Peano
|
||||||
|
import Data.Ratio
|
||||||
|
|
||||||
-- Various --
|
-- Various --
|
||||||
|
|
||||||
@ -55,7 +55,7 @@ toList (x:|xs) = x : toList xs
|
|||||||
--
|
--
|
||||||
-- <<https://i.imgur.com/S1F6UoI.png>>
|
-- <<https://i.imgur.com/S1F6UoI.png>>
|
||||||
π :: Number
|
π :: Number
|
||||||
π = toNumber pi
|
π = toNumber (80143857 % 25510582)
|
||||||
|
|
||||||
-- | Euler's number: the base of the natural logarithm
|
-- | Euler's number: the base of the natural logarithm
|
||||||
--
|
--
|
||||||
|
Loading…
Reference in New Issue
Block a user