Module
Data.HugeNum
- Package
- purescript-precise
- Repository
- purescript-contrib/purescript-precise
#fromString Source
fromString :: String -> Maybe HugeNum
Create a HugeNum from a String.
Strings should be in the form of a Purescript Number
. For example,
fromString "123.456" => Just (HugeNum 123.456)
#fromNumber Source
fromNumber :: Number -> HugeNum
#integerPart Source
integerPart :: HugeNum -> HugeNum
Returns the integer part of a HugeNum.
#fractionalPart Source
fractionalPart :: HugeNum -> HugeNum
Returns the fractional part of a HugeNum.
#numOfIntegral Source
numOfIntegral :: HugeNum -> Int
Counts how many digits are before the decimal.
#numOfFractional Source
numOfFractional :: HugeNum -> Int
Counts how many digits are after the decimal.
#isNegative Source
isNegative :: HugeNum -> Boolean
#isPositive Source
isPositive :: HugeNum -> Boolean
- Modules
- Data.
Digit - Data.
HugeInt - Data.
HugeNum