Module

Data.Binary.SignedInt

Package
purescript-binary-integers
Repository
Unisay/purescript-binary-integers

#SignedInt Source

newtype SignedInt b

Instances

#flipSign Source

flipSign :: forall b. Pos b => SignedInt b -> SignedInt b

#complement Source

complement :: forall b. Pos b => SignedInt b -> SignedInt b

#fromInt Source

fromInt :: forall b. Pos b => GtEq b D32 => b -> Int -> SignedInt b

Converts Int value to SignedInt b for b >= 31

#isNegative Source

isNegative :: forall b. SignedInt b -> Boolean