Module
Data.Int64
- Package
- purescript-int64
- Repository
- purescript-contrib/purescript-int64
Signed 2’s-complement 64-bit integers.
#fromLowHighBits Source
fromLowHighBits :: Int -> Int -> Int64
Creates an Int64
from low and high bits represented as Int
.
#fromNumber Source
fromNumber :: Number -> Maybe Int64
Creates an Int64
from a Number
value. The number must already be an
integer and fall within the valid range of values for the Int64
type
otherwise Nothing
is returned.
#fromString Source
fromString :: String -> Maybe Int64
Reads an Int64
from a String
value. The number must parse as an integer
and fall within the valid range of values for the Int64
type, otherwise
Nothing
is returned.
#fromStringAs Source
fromStringAs :: Radix -> String -> Maybe Int64
Like fromString
, but the integer can be specified in a different base.
#toStringAs Source
toStringAs :: Radix -> Int64 -> String
Like toStringAs
, but the integer can be specified in a different base.
#toUnsigned Source
toUnsigned :: Int64 -> UInt64
Converts to a UInt64
by reading the bits as a 64 bit unsigned integer.
#complement Source
complement :: Int64 -> Int64
Bitwise NOT.
Re-exports from Data.Int64.Internal
- Modules
- Data.
Int64 - Data.
Int64. Internal - Data.
UInt64