Module
Data.HugeNum
- Package
- purescript-precise
- Repository
- purescript-contrib/purescript-precise
#fromString Source
fromString :: String -> Maybe HugeNumCreate 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 -> HugeNumReturns the integer part of a HugeNum.
#fractionalPart Source
fractionalPart :: HugeNum -> HugeNumReturns the fractional part of a HugeNum.
#numOfIntegral Source
numOfIntegral :: HugeNum -> IntCounts how many digits are before the decimal.
#numOfFractional Source
numOfFractional :: HugeNum -> IntCounts how many digits are after the decimal.
#isNegative Source
isNegative :: HugeNum -> Boolean#isPositive Source
isPositive :: HugeNum -> Boolean- Modules
- Data.
Digit - Data.
HugeInt - Data.
HugeNum