Module
Js.BigInt.BigInt
- Package
- purescript-js-bigints
- Repository
- sigma-andex/purescript-js-bigints
#fromNumber Source
fromNumber :: Number -> Maybe BigInt
Convert a Number to a BigInt. The fractional part is truncated.
#fromString Source
fromString :: String -> Maybe BigInt
Parse a string into a BigInt
, assuming a decimal representation. Returns
Nothing
if the parse fails.
Examples:
fromString "42"
fromString "857981209301293808359384092830482"
fromString "1e100"
- Modules
- Js.
BigInt. BigInt